rpcd-mod-luci: use correct dlopen() flags
authorJo-Philipp Wich <jo@mein.io>
Mon, 2 Mar 2020 07:17:56 +0000 (08:17 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 2 Mar 2020 07:19:01 +0000 (08:19 +0100)
Fixes: #3707
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ff4111f6571d6faad7ae8b55c624d09b8c5f504a)

libs/rpcd-mod-luci/src/luci.c

index 951de5c46dc67eee9c1097f5ba7c86dccf7a68ad..1a1524d49ed14bec2ce10e7182ac5117b4db46b3 100644 (file)
@@ -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;