2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

321. [bug] When synthesizing a CNAME RR for a DNAME

response, query_addcname() failed to intitialize
                        the type and class of the CNAME dns_rdata_t,
                        causing random failures.
This commit is contained in:
Andreas Gustafsson
2000-07-10 18:33:25 +00:00
parent 3ce3305278
commit 04d58db327
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
321. [bug] When synthesizing a CNAME RR for a DNAME
response, query_addcname() failed to intitialize
the type and class of the CNAME dns_rdata_t,
causing random failures.
320. [func] Multiple rndc changes: parses an rndc.conf file,
uses authentication to talk to named, command
line syntax changed. This will all be described

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: query.c,v 1.113 2000/07/06 02:27:26 bwelling Exp $ */
/* $Id: query.c,v 1.114 2000/07/10 18:33:25 gson Exp $ */
#include <config.h>
@@ -1548,6 +1548,8 @@ query_addcname(ns_client_t *client, dns_name_t *qname, dns_name_t *tname,
dns_name_toregion(tname, &r);
rdata->data = r.base;
rdata->length = r.length;
rdata->rdclass = client->message->rdclass;
rdata->type = dns_rdatatype_cname;
ISC_LIST_INIT(rdatalist->rdata);
ISC_LIST_APPEND(rdatalist->rdata, rdata, link);