mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
clients: fix check on secret request path
priv->path is NULL when the agent handles all requests (for example when executing "nmcli agent"). Fixes:f3099db28e(cherry picked from commit2a391348b6)
This commit is contained in:
parent
1064dcafbe
commit
5dfb3ec72c
1 changed files with 1 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ request_secrets_from_ui (NMSecretAgentSimpleRequest *request)
|
||||||
g_return_if_fail (priv->enabled);
|
g_return_if_fail (priv->enabled);
|
||||||
|
|
||||||
/* We only handle requests for connection with @path if set. */
|
/* 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;
|
gs_free_error GError *error = NULL;
|
||||||
|
|
||||||
error = g_error_new (NM_SECRET_AGENT_ERROR, NM_SECRET_AGENT_ERROR_FAILED,
|
error = g_error_new (NM_SECRET_AGENT_ERROR, NM_SECRET_AGENT_ERROR_FAILED,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue