core-utils: don't load modules not ending with ".so"

This prevents attempts to load garbage from the module directory.
This commit is contained in:
Lubomir Rintel 2018-05-09 12:55:53 +02:00
parent 57e06bc0b8
commit 8e066af7d5

View file

@ -4086,7 +4086,7 @@ nm_utils_read_plugin_paths (const char *dirname, const char *prefix)
if (!g_str_has_prefix (item, prefix))
continue;
if (g_str_has_suffix (item, ".la"))
if (!g_str_has_suffix (item, ".so"))
continue;
data.path = g_build_filename (dirname, item, NULL);