3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

hotspot: check if HESSID parses correctly

This commit is contained in:
James Prestwood 2019-10-16 16:36:30 -07:00 committed by Denis Kenzior
parent 87a1c55145
commit 0ade612b3e

View File

@ -342,7 +342,12 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
config = l_new(struct hs20_config, 1);
if (hessid_str) {
util_string_to_address(hessid_str, config->hessid);
if (!util_string_to_address(hessid_str, config->hessid)) {
l_error("Invalid HESSID in settings");
l_free(config);
goto free_values;
}
l_free(hessid_str);
}