mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 11:00:18 +01:00
modem: cancel secrets only if there's an outstanding request
Fixes an assertion failure on WWAN connection attempts that fail before secrets are requested.
This commit is contained in:
parent
1fa73633d3
commit
22c11f8ef1
1 changed files with 2 additions and 1 deletions
|
|
@ -742,7 +742,8 @@ cancel_get_secrets (NMModem *self)
|
|||
{
|
||||
NMModemPrivate *priv = NM_MODEM_GET_PRIVATE (self);
|
||||
|
||||
nm_act_request_cancel_secrets (priv->act_request, priv->secrets_id);
|
||||
if (priv->secrets_id)
|
||||
nm_act_request_cancel_secrets (priv->act_request, priv->secrets_id);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue