Skip to content
Permalink
Browse files

resolve symbols now, and use dlerror

  • Loading branch information...
mcnewton committed Jan 29, 2018
1 parent f8b780e commit 9fee6b8d97e8707826df486a67227f4b6fc48965
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit 9fee6b8

Please sign in to comment.
You can’t perform that action at this time.