chiark / gitweb /
Support and test iteration; test return in different order.
[adns.git] / src / event.c
index 1b527a2fff26a414aa5cc4a5cdc2bc04a23572b8..4d43a8be2d8abdfbf44743b0103a5a4cb4cf7f9f 100644 (file)
@@ -228,7 +228,6 @@ int adns__pollfds(adns_state ads, struct pollfd pollfds_buf[MAX_POLLFDS]) {
     abort();
   }
   pollfds_buf[1].fd= ads->tcpsocket;
-  pollfds_buf[1].revents= 0;
   return 2;
 }
 
@@ -527,6 +526,7 @@ static int internal_check(adns_state ads,
   LIST_UNLINK(ads->output,qu);
   *answer= qu->answer;
   if (context_r) *context_r= qu->ctx.ext;
+  *query_io= qu;
   free(qu);
   return 0;
 }