2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

only set AD if they asked for DNSSEC

This commit is contained in:
Bob Halley 2000-11-20 17:53:35 +00:00
parent f26ab81383
commit 6b5a6fbe1c
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,6 @@
569. [func] The DNSSEC AD bit will not be set on queries which
have not requested a DNSSEC response.
568. [func] Add sample simple database drivers in contrib/sdb.
567. [bug] Setting the zone transfer timeout to zero caused an

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: query.c,v 1.152 2000/11/16 19:20:08 tale Exp $ */
/* $Id: query.c,v 1.153 2000/11/20 17:53:35 halley Exp $ */
#include <config.h>
@ -3418,12 +3418,14 @@ ns_query_start(ns_client_t *client) {
/*
* Set AD. We need only clear it if we add "pending" data to
* a response.
*
* XXX Note: the way AD is set will be changing in the near
* future.
*/
message->flags |= DNS_MESSAGEFLAG_AD;
if (WANTDNSSEC(client))
message->flags |= DNS_MESSAGEFLAG_AD;
qclient = NULL;
ns_client_attach(client, &qclient);
query_find(qclient, NULL);
}