summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-02 15:03:39 +0100
committerThomas Haller <thaller@redhat.com>2020-01-08 09:47:57 +0100
commit2e72403cb75883a277628d8e87252cc2be0f8285 (patch)
tree78e7a3c641e6ccecb146c75a246e83e3d8039b10
parentcffe3a3ef63086e5cd78675777d679126da3a8e6 (diff)
downloadNetworkManager-2e72403cb75883a277628d8e87252cc2be0f8285.tar.gz
libnm: add missing braces to multi-line condition in nm_utils_security_valid()
-rw-r--r--libnm-core/nm-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index dc938d353c..1f30fd1591 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -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: