mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Fix RADIUS server deinit to cancel timeout for session removal
This commit is contained in:
parent
930f704aac
commit
f481459f5e
@ -296,7 +296,8 @@ wpa_hexdump_ascii(MSG_MSGDUMP, "RADIUS SRV: " args)
|
||||
|
||||
|
||||
static void radius_server_session_timeout(void *eloop_ctx, void *timeout_ctx);
|
||||
|
||||
static void radius_server_session_remove_timeout(void *eloop_ctx,
|
||||
void *timeout_ctx);
|
||||
|
||||
|
||||
static struct radius_client *
|
||||
@ -358,6 +359,7 @@ static void radius_server_session_free(struct radius_server_data *data,
|
||||
struct radius_session *sess)
|
||||
{
|
||||
eloop_cancel_timeout(radius_server_session_timeout, data, sess);
|
||||
eloop_cancel_timeout(radius_server_session_remove_timeout, data, sess);
|
||||
eap_server_sm_deinit(sess->eap);
|
||||
radius_msg_free(sess->last_msg);
|
||||
os_free(sess->last_from_addr);
|
||||
@ -367,9 +369,6 @@ static void radius_server_session_free(struct radius_server_data *data,
|
||||
}
|
||||
|
||||
|
||||
static void radius_server_session_remove_timeout(void *eloop_ctx,
|
||||
void *timeout_ctx);
|
||||
|
||||
static void radius_server_session_remove(struct radius_server_data *data,
|
||||
struct radius_session *sess)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user