chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592aa66
)
On timeout with adnsresfilter in non-forever mode, resubmit queries.
author
ian
<ian>
Wed, 3 Nov 1999 02:44:05 +0000
(
02:44
+0000)
committer
ian
<ian>
Wed, 3 Nov 1999 02:44:05 +0000
(
02:44
+0000)
client/adnsresfilter.c
patch
|
blob
|
blame
|
history
diff --git
a/client/adnsresfilter.c
b/client/adnsresfilter.c
index 40685b1f5610c55a275265b583b186cbf93ac297..d7150e849519a590798a1a2afa3c5cd702b76903 100644
(file)
--- a/
client/adnsresfilter.c
+++ b/
client/adnsresfilter.c
@@
-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)