]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handle fatal and FIPS provider interactions
authorMark Andrews <marka@isc.org>
Fri, 27 Jan 2023 05:52:59 +0000 (16:52 +1100)
committerMark Andrews <marka@isc.org>
Mon, 3 Apr 2023 02:44:27 +0000 (12:44 +1000)
commite029803704e21db5ad49aea8ff7de55c618b7955
treed90a0207a7d45fc92b1d7a6f9d2356796e84508e
parent4e7dadd2057029741d2a8cc764442083706305d2
Handle fatal and FIPS provider interactions

When fatal is called we may be holding memory allocated by OpenSSL.
This may result in the reference count for the FIPS provider not
going to zero and the shared library not being unloaded during
OPENSSL_cleanup.  When the shared library is ultimately unloaded,
when all remaining dynamically loaded libraries are freed, we have
already destroyed the memory context we where using to track memory
leaks / late frees resulting in INSIST being called.

Disable triggering the INSIST when fatal has being called.
bin/confgen/util.c
bin/delv/delv.c
bin/dig/dighost.c
bin/dnssec/dnssectool.c
bin/named/server.c
bin/nsupdate/nsupdate.c
bin/rndc/util.c
bin/tools/mdig.c
bin/tools/nsec3hash.c
lib/isc/include/isc/tls.h
lib/isc/tls.c