From 22057930cd2a71e1073781b650c7296739c869a6 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 23 Jun 2000 02:07:58 +0000 Subject: [PATCH] TSIG AXFR verify leaked memory when talking to a BIND 8 server. --- lib/dns/message.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 85b40f4378..b0461f7dc7 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: message.c,v 1.129 2000/06/22 21:54:30 tale Exp $ */ +/* $Id: message.c,v 1.130 2000/06/23 02:07:58 bwelling Exp $ */ /*** *** Imports @@ -440,6 +440,9 @@ msgresetsigs(dns_message_t *msg, isc_boolean_t replying) { isc_mempool_put(msg->namepool, msg->tsigname); msg->tsig = NULL; msg->tsigname = NULL; + } else if (msg->querytsig != NULL) { + dns_rdataset_disassociate(msg->querytsig); + isc_mempool_put(msg->rdspool, msg->querytsig); } if (msg->sig0 != NULL) { INSIST(dns_rdataset_isassociated(msg->sig0));