mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix a function cleanup bug in dns_request_createraw
When get_dispatch() returns an error code, the dns_request_createraw() function jumps to the `cleanup` label, which will leave a previous attachment to the `request` pointer unattached. Fix the issue by jumping to the `detach` label instead.
This commit is contained in:
parent
e229d46a87
commit
963f6a2203
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue