Commit 22057930 authored by Brian Wellington's avatar Brian Wellington
Browse files

TSIG AXFR verify leaked memory when talking to a BIND 8 server.

parent 0978cb57
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment