1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

swrap: Properly cache the handle also in LIBC_SO case.

Small regression introduced by me in commit
0fa56909442c3cfea6a697681ea0e89ba5a0aa0f.

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

Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Pino Toscano 2014-06-03 14:59:21 +02:00 committed by Michael Adam
parent f288efcd78
commit 7a386b3308

View File

@ -434,6 +434,8 @@ static void *swrap_load_lib_handle(enum swrap_lib lib)
#ifdef LIBC_SO
if (handle == NULL) {
handle = dlopen(LIBC_SO, flags);
swrap.libc_handle = handle;
}
#endif
if (handle == NULL) {