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

diff --git a/CHANGES b/CHANGES
index ea82f7974b672c10f38b8e6efca10e8940579162..4085b4388c2d1bac1128d5b422af80dea156a365 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 fe5841f4970ba38d254073338f2d2b152dd0bc23..924b3f93f816f8995deb6e343516fc169ce0fd3a 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: xfrin.c,v 1.124.2.13 2006/01/04 23:50:17 marka Exp $ */
+/* $Id: xfrin.c,v 1.124.2.14 2007/05/24 01:51:38 marka Exp $ */
 
 #include <config.h>
 
@@ -1243,6 +1243,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.
                 */