2
0
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:
Mark Andrews 2021-10-06 18:32:19 +11:00 committed by Ondřej Surý
parent 2705860bb3
commit b7c362738d

View File

@ -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