Avoid dclose(RTLD_NEXT)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 10 Nov 2022 18:38:17 +0000 (18:38 +0000)
committerAndreas Schneider <asn@samba.org>
Mon, 23 Jan 2023 12:09:52 +0000 (13:09 +0100)
commit25a5a112a87796b7ff309eb10d7e58519a641029
treee339117ec2178f817a376df8e3cf9ae6a4c37d08
parentedb56658f0c3177d10a041aed9ac28687851d4e6
Avoid dclose(RTLD_NEXT)

In case the libc was not found and RTLD_NEXT is used instead, we should not
dlclose it, otherwise mayhem happens.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15228

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
src/nss_wrapper.c