chiark / gitweb /
compiles
[adns.git] / src / query.c
index a8423d7c36e3a7bdd6c13c104885d83a10a5bcf3..aaadb219e8868134d2882fb36e5f99872949b2e4 100644 (file)
@@ -66,7 +66,7 @@ static adns_query query_alloc(adns_state ads, const typeinfo *typei,
   adns__vbuf_init(&qu->search_vb);
   qu->search_origlen= qu->search_pos= qu->search_doneabs= 0;
 
-  qu->id= 0;
+  qu->id= -2; /* will be overwritten with real id before we leave adns */
   qu->flags= flags;
   qu->retries= 0;
   qu->udpnextserver= 0;