]> 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:43:22 +0000 (01:43 +0000)
committerMark Andrews <marka@isc.org>
Thu, 24 May 2007 01:43:22 +0000 (01:43 +0000)
CHANGES
lib/dns/xfrin.c

diff --git a/CHANGES b/CHANGES
index 7d160b7c306c75e0a4d8fed7c6d6acf5926c76b4..e270cddda17e116d58327ab4726ff83a48473f2d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2194.  [bug]           Close journal before calling 'done' in xfrin.c.
+
 2193.  [port]          win32: BINDInstall.exe is now linked statically.
                        [RT #16906]
 
index bec8501bd104ca37810edf82dc33f559ae8d7e35..5d957c6c12ff9d7034507ef38887d4edb16b4520 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: xfrin.c,v 1.135.18.11 2006/07/19 00:58:01 marka Exp $ */
+/* $Id: xfrin.c,v 1.135.18.12 2007/05/24 01:43:22 marka Exp $ */
 
 /*! \file */
 
@@ -1303,6 +1303,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.
                 */