From 55ddb88e53838693370c213930beda1652b8a583 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 4 Apr 2001 18:47:06 +0000 Subject: [PATCH] 803. [bug] Treat all SIG queries as if they have the CD bit set, otherwise no data will be returned [RT #749] --- CHANGES | 3 +++ bin/named/query.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 7d98e8325f..29501f37ba 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ + 803. [bug] Treat all SIG queries as if they have the CD bit set, + otherwise no data will be returned [RT #749] + 802. [bug] DNSSEC key tags were computed incorrectly in almost all cases. [RT #1146] diff --git a/bin/named/query.c b/bin/named/query.c index 4b43861032..a833e20eac 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: query.c,v 1.191 2001/03/20 00:00:43 bwelling Exp $ */ +/* $Id: query.c,v 1.192 2001/04/04 18:47:06 bwelling Exp $ */ #include @@ -3385,7 +3385,9 @@ ns_query_start(ns_client_t *client) { * allow lookups to return pending data and instruct the resolver * to return data before validation has completed. */ - if (message->flags & DNS_MESSAGEFLAG_CD) { + if (message->flags & DNS_MESSAGEFLAG_CD || + qtype == dns_rdatatype_sig) + { client->query.dboptions |= DNS_DBFIND_PENDINGOK; client->query.fetchoptions |= DNS_FETCHOPT_NOVALIDATE; }