]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2194. [bug] Close journal before calling 'done' in xfrin.c.
authorMark Andrews <marka@isc.org>
Thu, 24 May 2007 01:35:22 +0000 (01:35 +0000)
committerMark Andrews <marka@isc.org>
Thu, 24 May 2007 01:35:22 +0000 (01:35 +0000)
CHANGES
lib/dns/xfrin.c

diff --git a/CHANGES b/CHANGES
index e68601c9424faa5d94abf19ce14bbd353fb09b9f..c37fb6824b45e29c576d5de841ce3b08f7112846 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,4 @@
+2194.  [bug]           Close journal before calling 'done' in xfrin.c.
 
        --- 9.5.0a5 released ---
 
index 3224f1725b4d77b9e267fd96bb539e833eb01286..63ec6c108d50f5bd9a55ccae9b68b85e052c7145 100644 (file)
@@ -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.
                 */