]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Thu, 27 Jul 2000 00:54:16 +0000 (00:54 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 27 Jul 2000 00:54:16 +0000 (00:54 +0000)
If a message is built for one host, which isn't powered on, the tsig object
wasn't removed until the xfer object was deleted, so when the xfer tried the
second master, it asserted.

lib/dns/xfrin.c

index 16400b02c2aed2fd2b7abb3c9de29203cdaaf44d..efe27f22a9a9cd433a8b23b77455a4c6723c8c5b 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: xfrin.c,v 1.79.2.2 2000/07/05 20:50:33 bwelling Exp $ */
+/* $Id: xfrin.c,v 1.79.2.3 2000/07/27 00:54:16 gson Exp $ */
 
 #include <config.h>
 
@@ -864,6 +864,12 @@ xfrin_send_request(dns_xfrin_ctx_t *xfr) {
 
        CHECK(render(msg, &xfr->qbuffer));
 
+       /*
+        * Free the last tsig, if there is one.
+        */
+       if (xfr->lasttsig != NULL)
+               isc_buffer_free(&xfr->lasttsig);
+
        /*
         * Save the query TSIG and don't let message_destroy free it.
         */