supplicant: fix crash when connecting without both 'password' and 'password-raw'
It is the case e.g. for EAP-TLS. This regression was caused by commit
b08e2b8932
.
This commit is contained in:
@@ -734,6 +734,7 @@ nm_supplicant_config_add_setting_8021x (NMSupplicantConfig *self,
|
||||
return FALSE;
|
||||
} else {
|
||||
array = nm_setting_802_1x_get_password_raw (setting);
|
||||
if (array) {
|
||||
success = nm_supplicant_config_add_option (self,
|
||||
"password",
|
||||
(const char *)array->data,
|
||||
@@ -744,6 +745,7 @@ nm_supplicant_config_add_setting_8021x (NMSupplicantConfig *self,
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = nm_setting_802_1x_get_pin (setting);
|
||||
if (!add_string_val (self, value, "pin", FALSE, TRUE))
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user