mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 04:10:43 +02:00
device: let Ethernet connection fail on supplicant timeout if no secrets are required
Without this patch an Ethernet connection attempt that encountered a supplicant timeout was stuck in the needs-auth state even if it didn't require secrets. This patch applies the respective WiFi behaviour also to Ethernet devices. https://bugzilla.gnome.org/show_bug.cgi?id=795196 https://github.com/NetworkManager/NetworkManager/pull/92
This commit is contained in:
parent
f92a68c9e5
commit
7dab990eb2
1 changed files with 3 additions and 1 deletions
|
|
@ -671,8 +671,10 @@ handle_auth_or_fail (NMDeviceEthernet *self,
|
|||
wired_secrets_get_secrets (self, setting_name,
|
||||
NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION
|
||||
| (new_secrets ? NM_SECRET_AGENT_GET_SECRETS_FLAG_REQUEST_NEW : 0));
|
||||
} else
|
||||
} else {
|
||||
_LOGI (LOGD_DEVICE, "Cleared secrets, but setting didn't need any secrets.");
|
||||
return NM_ACT_STAGE_RETURN_FAILURE;
|
||||
}
|
||||
|
||||
return NM_ACT_STAGE_RETURN_POSTPONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue