From fc0d37fa3a50c494e37fbed170f5d53e12778e2c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 15 Mar 2001 03:00:50 +0000 Subject: [PATCH] init the name in dns_message_gettempname(). This means it'll be done twice in many cases, but it means dns_message_puttempname() can safely be called on the name in all cases. --- lib/dns/message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 2351536a04..8cefe44d7e 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.185 2001/03/05 21:15:41 bwelling Exp $ */ +/* $Id: message.c,v 1.186 2001/03/15 03:00:50 bwelling Exp $ */ /*** *** Imports @@ -2143,6 +2143,7 @@ dns_message_gettempname(dns_message_t *msg, dns_name_t **item) { *item = isc_mempool_get(msg->namepool); if (*item == NULL) return (ISC_R_NOMEMORY); + dns_name_init(*item, NULL); return (ISC_R_SUCCESS); }