Avoid dclose(RTLD_NEXT)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 10 Nov 2022 18:36:29 +0000 (18:36 +0000)
committerAndreas Schneider <asn@samba.org>
Thu, 24 Nov 2022 06:11:55 +0000 (07:11 +0100)
commitf0a511f6a4b60b63efcf0ddeec889672bd6d6a76
tree17a8071138da918b02a7e25cd7254f69a545103c
parent685483524bc15baa7f032c38d9084d8a5adfc7d5
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: Stefan Metzmacher <metze@samba.org>
src/socket_wrapper.c