summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-09 19:39:37 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-09 19:39:37 +0100
commit5a34128deac0c456d973f851a728966c87964e6c (patch)
treeb59ebeaacae938f63280cb9077d5538e3bc385ee
parent7af4d587f80f4f981fdd45404a7e1ac725647c75 (diff)
downloadsocket_wrapper-5a34128deac0c456d973f851a728966c87964e6c.zip
socket_wrapper-5a34128deac0c456d973f851a728966c87964e6c.tar.gz
socket_wrapper-5a34128deac0c456d973f851a728966c87964e6c.tar.xz
squash swrap_load_lib_handle
-rw-r--r--src/socket_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index b32af81..8efa896 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -370,7 +370,7 @@ static void *swrap_load_lib_handle(enum swrap_lib lib)
for (handle = NULL, i = 10; handle == NULL && i >= 0; i--) {
char soname[256] = {0};
- snprintf(soname, sizeof(soname), "libc.so.%d", i);
+ snprintf(soname, sizeof(soname), "libsocket.so.%d", i);
handle = dlopen(soname, flags);
}
@@ -386,7 +386,7 @@ static void *swrap_load_lib_handle(enum swrap_lib lib)
for (handle = NULL, i = 10; handle == NULL && i >= 0; i--) {
char soname[256] = {0};
- snprintf(soname, sizeof(soname), "libsocket.so.%d", i);
+ snprintf(soname, sizeof(soname), "libc.so.%d", i);
handle = dlopen(soname, flags);
}