chiark / gitweb /
On timeout with adnsresfilter in non-forever mode, resubmit queries.
authorian <ian>
Wed, 3 Nov 1999 02:44:05 +0000 (02:44 +0000)
committerian <ian>
Wed, 3 Nov 1999 02:44:05 +0000 (02:44 +0000)
client/adnsresfilter.c

index 40685b1..d7150e8 100644 (file)
@@ -122,6 +122,10 @@ static void procaddr(void) {
                           rrt,0,foundthing,&foundthing->qu);
     if (r) adnsfail("submit",r);
   }
+  if (!forever && foundthing->ans && foundthing->ans->status == adns_s_timeout) {
+    free(foundthing->ans);
+    foundthing->ans= 0;
+  }
   if (!foundthing->ans) {
     expectreturn= foundthing;
     r= (forever ? adns_wait : adns_check)