bind9/lib/ns
Aram Sargsyan 6bebcedb80 Cancel all fetch events in dns_resolver_cancelfetch()
Although 'dns_fetch_t' fetch can have two associated events, one for
each of 'DNS_EVENT_FETCHDONE' and 'DNS_EVENT_TRYSTALE' types, the
dns_resolver_cancelfetch() function is designed in a way that it
expects only one existing event, which it must cancel, and when it
happens so that 'stale-answer-client-timeout' is enabled and there
are two events, only one of them is canceled, and it results in an
assertion in dns_resolver_destroyfetch(), when it finds a dangling
event.

Change the logic of dns_resolver_cancelfetch() function so that it
cancels both the events (if they exist), and in the right order.

(cherry picked from commit ec2098ca35)
2023-01-12 13:00:03 +01:00
..
include add an update quota 2023-01-12 12:21:36 +01:00
tests Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
win32 Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
client.c Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
hooks.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
interfacemgr.c Propagate the shutdown event to the recursing ns_client(s) 2022-12-07 18:09:40 +01:00
Kyuafile Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lib.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
listenlist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
log.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
notify.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
query.c Cancel all fetch events in dns_resolver_cancelfetch() 2023-01-12 13:00:03 +01:00
server.c add an update quota 2023-01-12 12:21:36 +01:00
sortlist.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
stats.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update.c move update ACL and update-policy checks before quota 2023-01-12 12:21:36 +01:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
xfrout.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00