From: Jo-Philipp Wich Date: Mon, 2 Mar 2020 07:17:56 +0000 (+0100) Subject: rpcd-mod-luci: use correct dlopen() flags X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=59a53c954f14da8d4c81a19b7409159945e776eb;p=project%2Fluci.git rpcd-mod-luci: use correct dlopen() flags Fixes: #3707 Signed-off-by: Jo-Philipp Wich (cherry picked from commit ff4111f6571d6faad7ae8b55c624d09b8c5f504a) --- diff --git a/libs/rpcd-mod-luci/src/luci.c b/libs/rpcd-mod-luci/src/luci.c index 951de5c46d..1a1524d49e 100644 --- a/libs/rpcd-mod-luci/src/luci.c +++ b/libs/rpcd-mod-luci/src/luci.c @@ -783,7 +783,7 @@ static bool rpc_luci_get_iwinfo(struct blob_buf *buf, const char *devname, int nret; if (!iw_backend || !iw_close || !iw_modenames) { - iwlib = dlopen("libiwinfo.so", RTLD_LOCAL); + iwlib = dlopen("libiwinfo.so", RTLD_LAZY | RTLD_LOCAL); if (!iwlib) return false;