mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Fix error path handling on radius_accept_attr
This error path must not try to free the user entry since that entry was already added to the BSS list and will be freed when BSS is freed. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8b56743ef7
commit
4fb363c62b
@ -257,6 +257,7 @@ static int hostapd_config_read_eap_user(const char *fname,
|
||||
if (attr == NULL) {
|
||||
wpa_printf(MSG_ERROR, "Invalid radius_auth_req_attr: %s",
|
||||
buf + 19);
|
||||
user = NULL; /* already in the BSS list */
|
||||
goto failed;
|
||||
}
|
||||
if (user->accept_attr == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user