diff --git a/src/settings/nm-agent-manager.c b/src/settings/nm-agent-manager.c index df6eb4af3b..2b71bd1a4e 100644 --- a/src/settings/nm-agent-manager.c +++ b/src/settings/nm-agent-manager.c @@ -841,8 +841,10 @@ _con_get_request_done (NMSecretAgent *agent, req_complete_error (req, error); g_error_free (error); } else { - /* Tell the failed agent we're no longer interested. */ - nm_secret_agent_cancel_secrets (req->current, req->current_call_id); + if (req->current_call_id) { + /* Tell the failed agent we're no longer interested. */ + nm_secret_agent_cancel_secrets (req->current, req->current_call_id); + } /* Try the next agent */ request_next_agent (req);