]> granicus.if.org Git - curl/commitdiff
Another timeout fix in ares_getnameinfo().
authorSteinar H. Gunderson <sesse@google.com>
Thu, 4 Oct 2007 08:09:52 +0000 (08:09 +0000)
committerSteinar H. Gunderson <sesse@google.com>
Thu, 4 Oct 2007 08:09:52 +0000 (08:09 +0000)
ares/ares_getnameinfo.c

index 7fe191f86a99b8a48cc181a3e6f5bd390e3ddac8..06a4312a600aba1bb1eb4958c3e5ef0f59c06366 100644 (file)
@@ -249,7 +249,7 @@ static void nameinfo_callback(void *arg, int status, int timeouts, struct hosten
             service = lookup_service(niquery->addr.addr6.sin6_port,
                                      niquery->flags, srvbuf, sizeof(srvbuf));
         }
-      niquery->callback(niquery->arg, ARES_SUCCESS, 0, ipbuf, service);
+      niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf, service);
       return;
     }
   niquery->callback(niquery->arg, status, niquery->timeouts, NULL, NULL);