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.
* 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>
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.
*/