fix(wpa_supplicant): fix warnings found by GNU static analyzer

This commit is contained in:
Alexey Lapshin
2024-06-06 15:20:06 +07:00
parent 0b24bebf96
commit 9760884e60
2 changed files with 6 additions and 0 deletions

View File

@@ -433,6 +433,8 @@ int ieee802_1x_init(struct hostapd_data *hapd)
os_memset(&conf, 0, sizeof(conf));
eap_cfg = os_zalloc(sizeof(struct eap_config));
if (!eap_cfg)
return -1;
eap_cfg->max_auth_rounds = 100;
eap_cfg->max_auth_rounds_short = 50;
//eap_cfg->backend_auth = 1;