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.
This commit is contained in:
Brian Wellington 2000-07-24 05:30:30 +00:00
parent 2f0bfccf31
commit 1b1775921e

View file

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: xfrin.c,v 1.84 2000/07/21 23:00:29 bwelling Exp $ */
/* $Id: xfrin.c,v 1.85 2000/07/24 05:30:30 bwelling Exp $ */
#include <config.h>
@ -866,6 +866,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.
*/