]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2016. [bug] Return a partial answer if recursion is not
authorMark Andrews <marka@isc.org>
Tue, 16 May 2006 03:29:41 +0000 (03:29 +0000)
committerMark Andrews <marka@isc.org>
Tue, 16 May 2006 03:29:41 +0000 (03:29 +0000)
                        allowed but requested and we had the answer
                        to the original qname. [RT #15945]

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index bcfd655e227dacbb8d275e236ffab3ee9eec3664..b28e7f701681d4bd5e92df18118ee87faf42d75b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+2016.  [bug]           Return a partial answer if recursion is not
+                       allowed but requested and we had the answer
+                       to the original qname. [RT #15945]
+
 2013.  [bug]           Handle unexpected TSIGs on unsigned AXFR/IXFR
                        responses more gracefully. [RT #15941]
 
@@ -86,7 +90,7 @@
                        Jason Vas Dias <jvdias@redhat.com>.
 
 1971.  [port]          linux: make detection of missing IF_NAMESIZE more
-                        robust. [RT #15443]
+                       robust. [RT #15443]
 
 1970.  [bug]           nsupdate: adjust UDP timeout when falling back to
                        unsigned SOA query. [RT #15775]
 
 1779.  [port]          OSF 5.1: libtool didn't handle -pthread correctly.
 
-1778.   [port]         HUX 11.11: fix broken IN6ADDR_ANY_INIT and
+1778.  [port]          HUX 11.11: fix broken IN6ADDR_ANY_INIT and
                        IN6ADDR_LOOPBACK_INIT macros.
 
-1777.   [port]         OSF 5.1: fix broken IN6ADDR_ANY_INIT and
+1777.  [port]          OSF 5.1: fix broken IN6ADDR_ANY_INIT and
                        IN6ADDR_LOOPBACK_INIT macros.
 
-1776.   [port]         Solaris 2.9: fix broken IN6ADDR_ANY_INIT and
-                        IN6ADDR_LOOPBACK_INIT macros.
+1776.  [port]          Solaris 2.9: fix broken IN6ADDR_ANY_INIT and
+                       IN6ADDR_LOOPBACK_INIT macros.
 
 1775.  [bug]           Only compile getnetent_r.c when threaded. [RT #13205]
 
index d4e4645db2737eeace1061f4123dd4fcb38a0467..c41921e32363ffc54c35e0667ca991e0a7d1077e 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.198.2.13.4.39 2006/02/28 06:32:53 marka Exp $ */
+/* $Id: query.c,v 1.198.2.13.4.40 2006/05/16 03:29:41 marka Exp $ */
 
 #include <config.h>
 
@@ -2509,9 +2509,10 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
                }
        }
        if (result != ISC_R_SUCCESS) {
-               if (result == DNS_R_REFUSED)
-                       QUERY_ERROR(DNS_R_REFUSED);
-               else
+               if (result == DNS_R_REFUSED) {
+                       if (!PARTIALANSWER(client))
+                               QUERY_ERROR(DNS_R_REFUSED);
+               } else
                        QUERY_ERROR(DNS_R_SERVFAIL);
                goto cleanup;
        }