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,14 +734,16 @@ nm_supplicant_config_add_setting_8021x (NMSupplicantConfig *self,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
} else {
|
} else {
|
||||||
array = nm_setting_802_1x_get_password_raw (setting);
|
array = nm_setting_802_1x_get_password_raw (setting);
|
||||||
success = nm_supplicant_config_add_option (self,
|
if (array) {
|
||||||
"password",
|
success = nm_supplicant_config_add_option (self,
|
||||||
(const char *)array->data,
|
"password",
|
||||||
array->len,
|
(const char *)array->data,
|
||||||
TRUE);
|
array->len,
|
||||||
if (!success) {
|
TRUE);
|
||||||
nm_log_warn (LOGD_SUPPLICANT, "Error adding password-raw to supplicant config.");
|
if (!success) {
|
||||||
return FALSE;
|
nm_log_warn (LOGD_SUPPLICANT, "Error adding password-raw to supplicant config.");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value = nm_setting_802_1x_get_pin (setting);
|
value = nm_setting_802_1x_get_pin (setting);
|
||||||
|
Reference in New Issue
Block a user