mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-05 09:00:38 +02:00
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:
parent
2c52303f59
commit
b127fda19f
1 changed files with 10 additions and 8 deletions
|
|
@ -734,14 +734,16 @@ nm_supplicant_config_add_setting_8021x (NMSupplicantConfig *self,
|
|||
return FALSE;
|
||||
} else {
|
||||
array = nm_setting_802_1x_get_password_raw (setting);
|
||||
success = nm_supplicant_config_add_option (self,
|
||||
"password",
|
||||
(const char *)array->data,
|
||||
array->len,
|
||||
TRUE);
|
||||
if (!success) {
|
||||
nm_log_warn (LOGD_SUPPLICANT, "Error adding password-raw to supplicant config.");
|
||||
return FALSE;
|
||||
if (array) {
|
||||
success = nm_supplicant_config_add_option (self,
|
||||
"password",
|
||||
(const char *)array->data,
|
||||
array->len,
|
||||
TRUE);
|
||||
if (!success) {
|
||||
nm_log_warn (LOGD_SUPPLICANT, "Error adding password-raw to supplicant config.");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = nm_setting_802_1x_get_pin (setting);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue