From 1b1775921e4f2ad64bb5c06400a0daac1ea05085 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Mon, 24 Jul 2000 05:30:30 +0000 Subject: [PATCH] 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index cd50bfe4d3..cffb324df2 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -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 @@ -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. */