mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +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);
|
REQUIRE(respp != NULL);
|
||||||
|
|
||||||
resp = *respp;
|
resp = *respp;
|
||||||
|
*respp = NULL;
|
||||||
|
|
||||||
REQUIRE(VALID_RESPONSE(resp));
|
REQUIRE(VALID_RESPONSE(resp));
|
||||||
|
|
||||||
@ -1530,7 +1531,7 @@ dns_dispatch_cancel(dns_dispentry_t **respp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
dns_dispatch_done(respp);
|
dns_dispatch_done(&resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user