mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00: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
@ -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…
x
Reference in New Issue
Block a user