mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 13:10:29 +01:00
libnm: add missing braces to multi-line condition in nm_utils_security_valid()
This commit is contained in:
parent
cffe3a3ef6
commit
2e72403cb7
1 changed files with 2 additions and 1 deletions
|
|
@ -1195,9 +1195,10 @@ nm_utils_security_valid (NMUtilsSecurityType type,
|
|||
if (!(ap_flags & NM_802_11_AP_FLAGS_PRIVACY))
|
||||
return FALSE;
|
||||
if (ap_wpa || ap_rsn) {
|
||||
if (!device_supports_ap_ciphers (wifi_caps, ap_wpa, TRUE))
|
||||
if (!device_supports_ap_ciphers (wifi_caps, ap_wpa, TRUE)) {
|
||||
if (!device_supports_ap_ciphers (wifi_caps, ap_rsn, TRUE))
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
case NMU_SEC_DYNAMIC_WEP:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue