From: Petr Špaček Date: Sat, 1 Nov 2025 22:35:35 +0000 (-0400) Subject: Remove leftover FCTX_ATTR_NEEDEDNS0 X-Git-Tag: v9.21.15~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e167e5c657e001c0691a4c1d72e82eb0de7025b;p=thirdparty%2Fbind9.git Remove leftover FCTX_ATTR_NEEDEDNS0 This is leftover from commit b6309ed962c4988a314d61742c4fbc4935467d68 which removed support for bitstring labels back in 2002. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 3d915b95f23..85019613fb1 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -496,7 +496,6 @@ struct fetchctx { #define FCTX_ATTR_ADDRWAIT 0x0004 #define FCTX_ATTR_WANTCACHE 0x0010 #define FCTX_ATTR_WANTNCACHE 0x0020 -#define FCTX_ATTR_NEEDEDNS0 0x0040 #define FCTX_ATTR_TRIEDFIND 0x0080 #define FCTX_ATTR_TRIEDALT 0x0100 @@ -511,8 +510,6 @@ struct fetchctx { ((atomic_load_acquire(&(f)->attributes) & FCTX_ATTR_WANTCACHE) != 0) #define WANTNCACHE(f) \ ((atomic_load_acquire(&(f)->attributes) & FCTX_ATTR_WANTNCACHE) != 0) -#define NEEDEDNS0(f) \ - ((atomic_load_acquire(&(f)->attributes) & FCTX_ATTR_NEEDEDNS0) != 0) #define TRIEDFIND(f) \ ((atomic_load_acquire(&(f)->attributes) & FCTX_ATTR_TRIEDFIND) != 0) #define TRIEDALT(f) \ @@ -2643,15 +2640,6 @@ resquery_send(resquery_t *query) { */ query->udpsize = udpsize; - /* - * If we need EDNS0 to do this query and aren't using it, we - * lose. - */ - if (NEEDEDNS0(fctx) && (query->options & DNS_FETCHOPT_NOEDNS0) != 0) { - result = DNS_R_SERVFAIL; - goto cleanup_message; - } - add_triededns(fctx, &query->addrinfo->sockaddr); /*