2
0
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:
Mark Andrews
2001-10-10 04:11:32 +00:00
parent 4fa5d53e75
commit 13f2c161db
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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);