mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-22 18:30:37 +01:00
libnm-util: do not assert on buggy drivers with no WEP cipher capabilities
The crash happens with ipw2200, kernel 3.2.0 when a user tries to connect to a hidden network using nm-applet. g_assert (have_ap); is hit in 'case NMU_SEC_STATIC_WEP:' branch. Reported by Mathieu Trudel-Lapierre. See also: (lp:908516) (lp:908380)
This commit is contained in:
parent
19ffe0783f
commit
bb6da998b2
1 changed files with 2 additions and 0 deletions
|
|
@ -1243,6 +1243,8 @@ nm_utils_security_valid (NMUtilsSecurityType type,
|
|||
|| ((type == NMU_SEC_LEAP) && !adhoc)) {
|
||||
if (wifi_caps & (NM_WIFI_DEVICE_CAP_CIPHER_WEP40 | NM_WIFI_DEVICE_CAP_CIPHER_WEP104))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue