chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Search list implementation compiles, but not tested.
[adns]
/
src
/
reply.c
diff --git
a/src/reply.c
b/src/reply.c
index c1ad342e1cb29f3a20c5f3bc93548afacbe74b56..ab7c8ff4aadbc37c6cdb589baf43b49aa384cc88 100644
(file)
--- a/
src/reply.c
+++ b/
src/reply.c
@@
-227,7
+227,12
@@
void adns__procdgram(adns_state ads, const byte *dgram, int dglen,
if (rcode == rcode_nxdomain) {
/* We still wanted to look for the SOA so we could find the TTL. */
adns__update_expires(qu,soattl,now);
if (rcode == rcode_nxdomain) {
/* We still wanted to look for the SOA so we could find the TTL. */
adns__update_expires(qu,soattl,now);
- adns__query_fail(qu,adns_s_nxdomain);
+
+ if (qu->flags & adns_qf_search) {
+ adns__search_next(ads,qu,now);
+ } else {
+ adns__query_fail(qu,adns_s_nxdomain);
+ }
return;
}
return;
}