mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:22:04 -04:00
Correctly call dns_dispatch_done() in dns_dispatch_cancel()
Pass '&resp' rather than 'respp' as we have already cleared '*respp' when we took ownership of 'resp'.
This commit is contained in:
parent
2705860bb3
commit
b7c362738d
1 changed files with 2 additions and 1 deletions
|
|
@ -1482,6 +1482,7 @@ dns_dispatch_cancel(dns_dispentry_t **respp) {
|
|||
REQUIRE(respp != NULL);
|
||||
|
||||
resp = *respp;
|
||||
*respp = NULL;
|
||||
|
||||
REQUIRE(VALID_RESPONSE(resp));
|
||||
|
||||
|
|
@ -1530,7 +1531,7 @@ dns_dispatch_cancel(dns_dispentry_t **respp) {
|
|||
}
|
||||
|
||||
done:
|
||||
dns_dispatch_done(respp);
|
||||
dns_dispatch_done(&resp);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue