swrap: Properly cache the handle also in LIBC_SO case.
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 3 Jun 2014 12:59:21 +0000 (14:59 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 21:57:10 +0000 (23:57 +0200)
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>
lib/socket_wrapper/socket_wrapper.c

index 01a498ffccdb117caaf9c6fea9dac3bdfe9b9ce1..0626964f0d2a5fa3a9d658aae852a8d470eec7ed 100644 (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) {