Commit 83ef207a authored by Mark Andrews's avatar Mark Andrews
Browse files

2194. [bug] Close journal before calling 'done' in xfrin.c.

parent bd40cbcd
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: xfrin.c,v 1.151 2007/05/24 01:35:22 marka Exp $ */
/* $Id: xfrin.c,v 1.152 2007/05/24 02:55:05 marka Exp $ */
/*! \file */
......@@ -722,6 +722,11 @@ xfrin_fail(dns_xfrin_ctx_t *xfr, isc_result_t result, const char *msg) {
result = DNS_R_BADIXFR;
}
xfrin_cancelio(xfr);
/*
* Close the journal.
*/
if (xfr->ixfr.journal != NULL)
dns_journal_destroy(&xfr->ixfr.journal);
if (xfr->done != NULL) {
(xfr->done)(xfr->zone, result);
xfr->done = NULL;
......
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