Send the timeout count in ares_getnameinfo().
authorSteinar H. Gunderson <sesse@google.com>
Thu, 4 Oct 2007 08:09:04 +0000 (08:09 +0000)
committerSteinar H. Gunderson <sesse@google.com>
Thu, 4 Oct 2007 08:09:04 +0000 (08:09 +0000)
ares/ares_getnameinfo.c

index 4f690f9..7fe191f 100644 (file)
@@ -252,7 +252,7 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
       niquery->callback(niquery->arg, ARES_SUCCESS, 0, ipbuf, service);
       return;
     }
-  niquery->callback(niquery->arg, status, 0, NULL, NULL);
+  niquery->callback(niquery->arg, status, niquery->timeouts, NULL, NULL);
   free(niquery);
 }