From efdbd2675347d6cc881da95d7280d846885fc589 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 8 May 2014 16:26:43 +0200 Subject: [PATCH] src: properly cache the handle also in LIBC_SO case Small regression introduced by me in commit 0fa56909442c3cfea6a697681ea0e89ba5a0aa0f. --- src/socket_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 4bca746..1f25886 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -427,6 +427,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) { -- 2.0.0.rc0