From 7a386b33086c6afba587443f1eeb4645399a965e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 3 Jun 2014 14:59:21 +0200 Subject: 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 Reviewed-by: Michael Adam --- lib/socket_wrapper/socket_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/socket_wrapper/socket_wrapper.c') 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) { -- cgit