mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 02:57:58 +02:00
wifi: fix crash in NMDeviceWifi.check_connection_compatible() checking WEP capability
https://bugzilla.redhat.com/show_bug.cgi?id=2092782
Fixes: feee84aac4 ('wifi: mark WEP connections incompatible if supplicant lacks capability')
This commit is contained in:
parent
3d272d264c
commit
fe7bdaa7e4
1 changed files with 3 additions and 2 deletions
|
|
@ -1076,8 +1076,9 @@ check_connection_compatible(NMDevice *device, NMConnection *connection, GError *
|
||||||
if (s_wsec) {
|
if (s_wsec) {
|
||||||
key_mgmt = nm_setting_wireless_security_get_key_mgmt(s_wsec);
|
key_mgmt = nm_setting_wireless_security_get_key_mgmt(s_wsec);
|
||||||
|
|
||||||
if (nm_supplicant_interface_get_capability(priv->sup_iface, NM_SUPPL_CAP_TYPE_WEP)
|
if (priv->sup_iface
|
||||||
== NM_TERNARY_FALSE
|
&& nm_supplicant_interface_get_capability(priv->sup_iface, NM_SUPPL_CAP_TYPE_WEP)
|
||||||
|
== NM_TERNARY_FALSE
|
||||||
&& NM_IN_STRSET(key_mgmt, "ieee8021x", "none")) {
|
&& NM_IN_STRSET(key_mgmt, "ieee8021x", "none")) {
|
||||||
nm_utils_error_set_literal(error,
|
nm_utils_error_set_literal(error,
|
||||||
NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY,
|
NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue