read_trustfiles() doesn't use the realloc'ed pointer.
--- agent/trustlist.c~
+++ agent/trustlist.c
@@ -369,7 +369,7 @@
lock_trusttable ();
xfree (trusttable);
- trusttable = table;
+ trusttable = ti;
trusttablesize = tableidx;
unlock_trusttable ();
return 0;
This didn't work at least on OpenBSD.
(LISTTRUSTED didn't show anything and
ISTRUSTED didn't succeed for any entries in trustlist.txt)