mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
forward_udp_to_owner: sanity check of session_id_size
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -712,6 +712,12 @@ int sfd = -1;
|
||||
human_addr((struct sockaddr*)&cli_addr, cli_addr_size, tbuf, sizeof(tbuf)));
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (session_id_size <= 0 || session_id_size > GNUTLS_MAX_SESSION_ID) {
|
||||
mslog(s, NULL, LOG_INFO, "%s: invalid session ID size",
|
||||
human_addr((struct sockaddr*)&cli_addr, cli_addr_size, tbuf, sizeof(tbuf)));
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
/* search for the IP and the session ID in all procs */
|
||||
|
||||
Reference in New Issue
Block a user