mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 08:44:03 -05:00
HS 2.0R2: Write OSEN key_mgmt value to config file
This was forgotten when the parser for key_mgmt=OSEN was added. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d3fd563f46
commit
2d6ee86f9b
@ -699,6 +699,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_SAE */
|
#endif /* CONFIG_SAE */
|
||||||
|
|
||||||
|
#ifdef CONFIG_HS20
|
||||||
|
if (ssid->key_mgmt & WPA_KEY_MGMT_OSEN) {
|
||||||
|
ret = os_snprintf(pos, end - pos, "%sOSEN",
|
||||||
|
pos == buf ? "" : " ");
|
||||||
|
if (ret < 0 || ret >= end - pos) {
|
||||||
|
end[-1] = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
pos += ret;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_HS20 */
|
||||||
|
|
||||||
if (pos == buf) {
|
if (pos == buf) {
|
||||||
os_free(buf);
|
os_free(buf);
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user