diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index feff048e9a..902abc34d9 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -2065,8 +2065,8 @@ cleanup: if (msg != NULL) { dns_message_detach(&msg); } - dns_xfrin_detach(&xfr); LIBDNS_XFRIN_RECV_DONE(xfr, xfr->info, result); + dns_xfrin_detach(&xfr); } static void