From 4dbd99bcae31ba7a3918f4a3812d27c69191ba8a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 27 Apr 2012 15:00:02 +1000 Subject: [PATCH] 3183. [bug] Added RTLD_GLOBAL flag to dlopen call. [RT #26301] --- CHANGES | 2 ++ bin/named/unix/dlz_dlopen_driver.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8f366bf48ab..a16d4a1c706 100644 --- a/CHANGES +++ b/CHANGES @@ -40,6 +40,8 @@ 3232. [bug] Zero zone->curmaster before return in dns_zone_setmasterswithkeys(). [RT #26732] +3183. [bug] Added RTLD_GLOBAL flag to dlopen call. [RT #26301] + --- 9.8.2 released --- 3298. [bug] Named could dereference a NULL pointer in diff --git a/bin/named/unix/dlz_dlopen_driver.c b/bin/named/unix/dlz_dlopen_driver.c index ca4b1fdfcda..edd394656d2 100644 --- a/bin/named/unix/dlz_dlopen_driver.c +++ b/bin/named/unix/dlz_dlopen_driver.c @@ -250,7 +250,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[], isc_mutex_init(&cd->lock); /* Open the library */ - dlopen_flags = RTLD_NOW; + dlopen_flags = RTLD_NOW|RTLD_GLOBAL; #ifdef RTLD_DEEPBIND /* -- 2.47.3