--- src/settings/plugins/ofono/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) Index: b/src/settings/plugins/ofono/plugin.c =================================================================== --- a/src/settings/plugins/ofono/plugin.c +++ b/src/settings/plugins/ofono/plugin.c @@ -179,6 +179,9 @@ nm_ofono_read_imsi_contexts (SCPluginOfo GKeyFile *keyfile = NULL; GError *tmp_error = NULL; + if (g_strstr_len (imsi, -1, "/") != NULL) + goto patherror; + imsi_path = g_strdup_printf (OFONO_CONFIG_DIR "/%s", imsi); imsi_dir = g_dir_open (imsi_path, 0, NULL); @@ -246,6 +249,7 @@ nm_ofono_read_imsi_contexts (SCPluginOfo return TRUE; } +patherror: if (tmp_error) { g_propagate_error (error, tmp_error); g_clear_error (&tmp_error);