]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
resolve symbols now, and use dlerror
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 29 Jan 2018 20:37:33 +0000 (20:37 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 29 Jan 2018 20:37:33 +0000 (20:37 +0000)
src/main/mainconfig.c

index c125047026ac8748cf4c1753a3a23bca348c964c..30d5d2a1e771cf8ea06901c7678215ccbbcd4eda 100644 (file)
@@ -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;
                                }