mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
1039. [bug] We cached an incorrect negative response if there were
CNAMES in the answer section. [RT#1862]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
||||
1039. [bug] We cached an incorrect negative response if there were
|
||||
CNAMES in the answer section. [RT#1862]
|
||||
|
||||
1038. [bug] In servers configured with a tkey-domain option,
|
||||
TKEY queries with an owner name other than the root
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: resolver.c,v 1.225 2001/10/09 08:03:32 marka Exp $ */
|
||||
/* $Id: resolver.c,v 1.226 2001/10/10 04:11:32 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -3107,6 +3107,12 @@ ncache_message(fetchctx_t *fctx, dns_rdatatype_t covers, isc_stdtime_t now) {
|
||||
name = &fctx->name;
|
||||
node = NULL;
|
||||
|
||||
/*
|
||||
* XXXMPA remove when we follow cnames and adjust the setting
|
||||
* of FCTX_ATTR_WANTNCACHE in noanswer_response().
|
||||
*/
|
||||
INSIST(fctx->rmessage->counts[DNS_SECTION_ANSWER] == 0);
|
||||
|
||||
/*
|
||||
* Is DNSSEC validation required for this name?
|
||||
*/
|
||||
@@ -3627,7 +3633,7 @@ noanswer_response(fetchctx_t *fctx, dns_name_t *oqname,
|
||||
if (ns_name != NULL)
|
||||
ns_name->attributes &= ~DNS_NAMEATTR_CACHE;
|
||||
|
||||
if (negative_response)
|
||||
if (negative_response && oqname == NULL)
|
||||
fctx->attributes |= FCTX_ATTR_WANTNCACHE;
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
|
Reference in New Issue
Block a user