diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index 550fefa809..4e59f489f0 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -438,7 +438,7 @@ request_secrets_from_ui (NMSecretAgentSimpleRequest *request) g_return_if_fail (priv->enabled); /* We only handle requests for connection with @path if set. */ - if (!g_str_has_prefix (request->request_id, priv->path)) { + if (priv->path && !g_str_has_prefix (request->request_id, priv->path)) { gs_free_error GError *error = NULL; error = g_error_new (NM_SECRET_AGENT_ERROR, NM_SECRET_AGENT_ERROR_FAILED,