mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 14:40:21 +01:00
ifcfg-rh: drop g_assert_not_reached() that clearly cannot be reached
Use nm_assert() which is disabled in production builds.
(cherry picked from commit 43575513ca)
This commit is contained in:
parent
2953408621
commit
291ed80d6c
1 changed files with 3 additions and 3 deletions
|
|
@ -3692,10 +3692,10 @@ make_wpa_setting (shvarFile *ifcfg,
|
|||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "wpa-none", NULL);
|
||||
else if (wpa_psk)
|
||||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "wpa-psk", NULL);
|
||||
else if (wpa_sae)
|
||||
else {
|
||||
nm_assert (wpa_sae);
|
||||
g_object_set (wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "sae", NULL);
|
||||
else
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
} else {
|
||||
nm_assert (wpa_eap || ieee8021x);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue