From: Matthew Newton Date: Mon, 29 Jan 2018 20:37:33 +0000 (+0000) Subject: resolve symbols now, and use dlerror X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fee6b8d97e8707826df486a67227f4b6fc48965;p=thirdparty%2Ffreeradius-server.git resolve symbols now, and use dlerror --- diff --git a/src/main/mainconfig.c b/src/main/mainconfig.c index c125047026a..30d5d2a1e77 100644 --- a/src/main/mainconfig.c +++ b/src/main/mainconfig.c @@ -799,8 +799,8 @@ do {\ * Hacks for LD_PRELOAD. */ if ((strcmp(attr, "LD_PRELOAD") == 0) && - (dlopen(value, RTLD_GLOBAL) == NULL)) { - cf_log_err(ci, "Failed loading library %s: %s", value, fr_syserror(errno)); + (dlopen(value, RTLD_NOW | RTLD_GLOBAL) == NULL)) { + cf_log_err(ci, "Failed loading library %s: %s", value, dlerror()); talloc_free(cs); return -1; }