mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
RADIUS server: Do not close fd=0 in error cases
Initialize auth_sock and acct_sock to -1 to avoid radius_server_deinit() attempting to close fd=0 if anything fails in setting up the RADIUS server. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f82a840878
commit
baf8ab8cec
@ -2348,6 +2348,8 @@ radius_server_init(struct radius_server_conf *conf)
|
|||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
data->auth_sock = -1;
|
||||||
|
data->acct_sock = -1;
|
||||||
dl_list_init(&data->erp_keys);
|
dl_list_init(&data->erp_keys);
|
||||||
os_get_reltime(&data->start_time);
|
os_get_reltime(&data->start_time);
|
||||||
data->conf_ctx = conf->conf_ctx;
|
data->conf_ctx = conf->conf_ctx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user