Track num_servers correctly
[trust_router.git] / tid / example / tids_main.c
index 79230b7..f47913f 100644 (file)
@@ -39,7 +39,7 @@
 #include <sqlite3.h>
 
 #include <tr_debug.h>
-#include <trust_router/tid.h>
+#include <tid_internal.h>
 #include <trust_router/tr_constraint.h>
 #include <trust_router/tr_dh.h>
 #include <openssl/rand.h>
@@ -177,6 +177,7 @@ static int tids_req_handler (TIDS_INSTANCE *tids,
     return -1;
   }
   memset((*resp)->servers, 0, sizeof(TID_SRVR_BLK));
+  (*resp)->num_servers = 1;
 
   /* TBD -- Set up the server IP Address */