From f915bbfc2d3ca880064e3967ecd9a71422acbb4c Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 14 Feb 2001 19:32:30 +0000 Subject: [PATCH] rdatas constructured by query_addcnamelike() always had type CNAME, even when part of a non-CNAME rdataset --- bin/named/query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/query.c b/bin/named/query.c index 8f32bd138f..c94d86855f 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.180 2001/02/14 03:50:05 gson Exp $ */ +/* $Id: query.c,v 1.181 2001/02/14 19:32:30 gson Exp $ */ #include @@ -1807,7 +1807,7 @@ query_addcnamelike(ns_client_t *client, dns_name_t *qname, dns_name_t *tname, rdata->data = r.base; rdata->length = r.length; rdata->rdclass = client->message->rdclass; - rdata->type = dns_rdatatype_cname; + rdata->type = type; ISC_LIST_INIT(rdatalist->rdata); ISC_LIST_APPEND(rdatalist->rdata, rdata, link);