Commit 70922056 authored by Mark Andrews's avatar Mark Andrews
Browse files

2230. [bug] We could INSIST reading a corrupted journal.

                        [RT #17132]
parent b9eb3de2
2230. [bug] We could INSIST reading a corrupted journal.
[RT #17132]
2229. [bug] Null pointer dereference on query pool creation
failure. [RT #17133]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: journal.c,v 1.98 2007/09/02 23:02:53 marka Exp $ */
/* $Id: journal.c,v 1.99 2007/09/07 05:14:33 marka Exp $ */
#include <config.h>
......@@ -1629,6 +1629,8 @@ read_one_rr(dns_journal_t *j) {
/*
* Parse the rdata.
*/
if (isc_buffer_remaininglength(&j->it.source) != rdlen)
FAIL(DNS_R_FORMERR);
isc_buffer_setactive(&j->it.source, rdlen);
dns_rdata_reset(&j->it.rdata);
CHECK(dns_rdata_fromwire(&j->it.rdata, rdclass,
......
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