]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1966. [bug] Don't set CD when we have fallen back to plain DNS.
authorMark Andrews <marka@isc.org>
Fri, 6 Jan 2006 00:38:21 +0000 (00:38 +0000)
committerMark Andrews <marka@isc.org>
Fri, 6 Jan 2006 00:38:21 +0000 (00:38 +0000)
                        [RT #15727]

lib/dns/resolver.c

index 9acd154469d5b0b60880462729bd886efdba8653..a168c3fc1ef3f3346981d01708733668b9143017 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: resolver.c,v 1.326 2006/01/05 02:19:02 marka Exp $ */
+/* $Id: resolver.c,v 1.327 2006/01/06 00:38:21 marka Exp $ */
 
 /*! \file */
 
@@ -1351,6 +1351,12 @@ resquery_send(resquery_t *query) {
                goto cleanup_message;
        }
 
+       /*
+        * Clear CD if EDNS is not in use.
+        */
+       if ((query->options & DNS_FETCHOPT_NOEDNS0) != 0)
+               fctx->qmessage->flags &= ~DNS_MESSAGEFLAG_CD;
+
        /*
         * Add TSIG record tailored to the current recipient.
         */