]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Tue, 20 Mar 2001 18:46:35 +0000 (18:46 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 20 Mar 2001 18:46:35 +0000 (18:46 +0000)
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

index 56db5e870bc5526b6fd452610aa5dc49c8ab17da..7ac444e6b6205ebea91ed10595d64ed526ecb5e0 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: message.c,v 1.164.2.3 2001/02/23 18:27:59 gson Exp $ */
+/* $Id: message.c,v 1.164.2.4 2001/03/20 18:46:35 gson Exp $ */
 
 /***
  *** Imports
@@ -2106,6 +2106,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);
 }