From 69a19afe86fd6ffb61358195cda3c5dbaab49724 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 29 Aug 2018 17:04:25 +0000 Subject: [PATCH] fix tls_align_dlopen skip further checks after a dlsym failure. --- src/functional/tls_align_dlopen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/functional/tls_align_dlopen.c b/src/functional/tls_align_dlopen.c index 77a7b93..3f7ae34 100644 --- a/src/functional/tls_align_dlopen.c +++ b/src/functional/tls_align_dlopen.c @@ -18,8 +18,7 @@ int main() t = dlsym(h, "t"); if (!t) t_error("dlsym failed\n"); - - for (i = 0; i < 4; i++) { + else for (i = 0; i < 4; i++) { if (!t[i].name) t_error("name is not set for t[%d]\n", i); if (t[i].addr & (t[i].align-1)) -- 2.11.4.GIT