bind9/lib/dns
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 Consider non-stale data when in serve-stale mode 2023-01-09 13:57:43 +01:00
rdata Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tests Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
win32 Add new functions to lib/dns/win32/libdns.def.in 2022-05-16 18:31:55 +02:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
adb.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
badcache.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
byaddr.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
cache.c Add dns_db_allrdatasets options 2022-12-08 11:20:35 +11:00
callbacks.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
catz.c Increase catalog zone entries hash table's bits size 2023-01-11 17:26:26 +00:00
client.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
clientinfo.c allow dns_clientinfo to store client ECS data 2022-01-27 16:08:57 -08:00
compress.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
db.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
dbiterator.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dbtable.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
diff.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dispatch.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dlz.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
dns64.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dnsrps.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dnssec.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dnstap.c dnstap query_message field was erroneously set with responses 2022-08-31 15:49:25 -07:00
dnstap.proto Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ds.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
dst_api.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dst_internal.h Check if key metadata is modified before writing 2022-05-16 10:35:33 +02:00
dst_openssl.h Use autoconf check for BN_GENCB_new() 2022-03-02 09:34:29 +00:00
dst_parse.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
dst_parse.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dst_pkcs11.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dst_result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
dyndb.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ecdb.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
ecs.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
fixedname.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
forward.c Use sizeof(*ptr) for allocating/freeing memory in forward.c 2023-01-11 13:42:00 +00:00
gen-unix.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gen-win32.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gen.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
geoip2.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gssapi_link.c Remove a redundant variable-length array 2022-03-18 17:21:57 +00:00
gssapictx.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
hmac_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
ipkeylist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
iptable.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
journal.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
kasp.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
key.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
keydata.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
keymgr.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
keytable.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +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
log.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
lookup.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mapapi increase MAPAPI 2021-08-28 07:45:39 -07:00
master.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
masterdump.c Add dns_db_allrdatasets options 2022-12-08 11:20:35 +11:00
message.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
name.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
ncache.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
nsec.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
nsec3.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
nta.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
openssl_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
openssldh_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
opensslecdsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
openssleddsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
opensslrsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
order.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
peer.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
pkcs11.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pkcs11ecdsa_link.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
pkcs11eddsa_link.c Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE() 2022-03-28 23:28:05 +02:00
pkcs11rsa_link.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
portlist.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
private.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rbt.c Don't perform arithmetic on NULL pointers 2023-01-10 17:45:51 +11:00
rbtdb.c Remove different zero TTL handling for rdataset iterator 2022-12-08 11:20:35 +11:00
rbtdb.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rcode.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rdata.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rdatalist.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
rdatalist_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rdataset.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
rdatasetiter.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rdataslab.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
request.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
resolver.c Cancel all fetch events in dns_resolver_cancelfetch() 2023-01-12 13:00:03 +01:00
result.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
rootns.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
rpz.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
rriterator.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
rrl.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
sdb.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
sdlz.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
soa.c Remove use of the inline keyword used as suggestion to compiler 2022-03-25 09:37:18 +01:00
ssu.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
ssu_external.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
stats.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tcpmsg.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
time.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
timer.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tkey.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tsec.c Simplify way we tag unreachable code with only ISC_UNREACHABLE() 2022-03-25 09:33:51 +01:00
tsig.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
tsig_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ttl.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
validator.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
version.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
view.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
xfrin.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
zone.c Fix a use-after-free bug in dns_zonemgr_releasezone() 2023-01-11 12:17:27 +00:00
zone_p.h Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
zonekey.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00
zoneverify.c Extend dns_db_allrdatasets to control interation results 2022-12-08 11:20:35 +11:00
zt.c Update sources to Clang 15 formatting 2022-11-29 10:30:34 +01:00