mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
hotspot: check if HESSID parses correctly
This commit is contained in:
parent
87a1c55145
commit
0ade612b3e
@ -342,7 +342,12 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
|
|||||||
config = l_new(struct hs20_config, 1);
|
config = l_new(struct hs20_config, 1);
|
||||||
|
|
||||||
if (hessid_str) {
|
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);
|
l_free(hessid_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user