mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 21:20:10 +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.
(cherry picked from commit 22c11f8ef1)
This commit is contained in:
parent
fa7cacd7df
commit
8ea39c3f1c
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