From 2e72403cb75883a277628d8e87252cc2be0f8285 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 2 Jan 2020 15:03:39 +0100 Subject: [PATCH] libnm: add missing braces to multi-line condition in nm_utils_security_valid() --- libnm-core/nm-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: