diff options
-rw-r--r-- | src/socket_wrapper.c | 4 |
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); } |