From: Mark Andrews Date: Thu, 24 May 2007 01:35:22 +0000 (+0000) Subject: 2194. [bug] Close journal before calling 'done' in xfrin.c. X-Git-Tag: v9.5.0a6~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e078f002c06b6b26e2d7749a4f9e3907f3e85de3;p=thirdparty%2Fbind9.git 2194. [bug] Close journal before calling 'done' in xfrin.c. --- diff --git a/CHANGES b/CHANGES index e68601c9424..c37fb6824b4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,4 @@ +2194. [bug] Close journal before calling 'done' in xfrin.c. --- 9.5.0a5 released --- diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index 3224f1725b4..63ec6c108d5 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: xfrin.c,v 1.150 2007/02/14 00:27:26 marka Exp $ */ +/* $Id: xfrin.c,v 1.151 2007/05/24 01:35:22 marka Exp $ */ /*! \file */ @@ -1314,6 +1314,11 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) { xfr->state = XFRST_INITIALSOA; CHECK(xfrin_send_request(xfr)); } else if (xfr->state == XFRST_END) { + /* + * Close the journal. + */ + if (xfr->ixfr.journal != NULL) + dns_journal_destroy(&xfr->ixfr.journal); /* * Inform the caller we succeeded. */