summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2014-06-03 14:59:21 +0200
committerMichael Adam <obnox@samba.org>2014-06-05 23:57:10 +0200
commit7a386b33086c6afba587443f1eeb4645399a965e (patch)
tree4e9b5e8fdaf24ac7f747183b0b07a3b3375806fe /lib/socket_wrapper
parentf288efcd78d45ac8fe0ead7c7960cfe60a909ed2 (diff)
downloadsamba-7a386b33086c6afba587443f1eeb4645399a965e.tar.gz
samba-7a386b33086c6afba587443f1eeb4645399a965e.tar.xz
samba-7a386b33086c6afba587443f1eeb4645399a965e.zip
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>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 01a498ffccd..0626964f0d2 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -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) {