mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
Merge branch '3166-disable-inactivehandles-caching-with-address-sanitizer' into 'main'
Disable inactive handles caching when compiled with sanitizers Closes #3166 See merge request isc-projects/bind9!5879
This commit is contained in:
@@ -1753,9 +1753,11 @@ nmhandle_deactivate(isc_nmsocket_t *sock, isc_nmhandle_t *handle) {
|
|||||||
|
|
||||||
INSIST(atomic_fetch_sub(&sock->ah, 1) > 0);
|
INSIST(atomic_fetch_sub(&sock->ah, 1) > 0);
|
||||||
|
|
||||||
|
#if !__SANITIZE_ADDRESS && !__SANITIZE_THREAD__
|
||||||
if (atomic_load(&sock->active)) {
|
if (atomic_load(&sock->active)) {
|
||||||
reuse = isc_astack_trypush(sock->inactivehandles, handle);
|
reuse = isc_astack_trypush(sock->inactivehandles, handle);
|
||||||
}
|
}
|
||||||
|
#endif /* !__SANITIZE_ADDRESS && !__SANITIZE_THREAD__ */
|
||||||
if (!reuse) {
|
if (!reuse) {
|
||||||
nmhandle_free(sock, handle);
|
nmhandle_free(sock, handle);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user