diff --git a/lib/dns/request.c b/lib/dns/request.c index 49a95e1162..f0047b145b 100644 --- a/lib/dns/request.c +++ b/lib/dns/request.c @@ -558,7 +558,7 @@ again: result = get_dispatch(tcp, newtcp, requestmgr, srcaddr, destaddr, dscp, &connected, &request->dispatch); if (result != ISC_R_SUCCESS) { - goto cleanup; + goto detach; } if ((options & DNS_REQUESTOPT_FIXEDID) != 0) {