From 54d74cb22eb17107bdc8c36c24c43a1f2d16914e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 8 May 2014 16:26:43 +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 --- src/socket_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 01a498f..0626964 100644 --- a/src/socket_wrapper.c +++ b/src/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