Commit 2fa0485e authored by Mark Andrews's avatar Mark Andrews
Browse files

1861. [bug] dig could trigger a INSIST on certain malformed

                        responses. [RT #14801]
parent 9eca2b9b
......@@ -29,7 +29,8 @@
New zone options: check-mx and integrity-check.
[RT #4940]
1861. [placeholder] rt14801
1861. [bug] dig could trigger a INSIST on certain malformed
responses. [RT #14801]
1860. [placeholder] rt14775
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: message.c,v 1.226 2005/04/27 04:56:48 sra Exp $ */
/* $Id: message.c,v 1.227 2005/06/07 01:42:29 marka Exp $ */
/*! \file */
......@@ -1478,6 +1478,13 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
free_name = ISC_FALSE;
}
if (seen_problem) {
if (free_name)
isc_mempool_put(msg->namepool, name);
if (free_rdataset)
isc_mempool_put(msg->rdspool, rdataset);
free_name = free_rdataset = ISC_FALSE;
}
INSIST(free_name == ISC_FALSE);
INSIST(free_rdataset == ISC_FALSE);
}
......
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