mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-12 07:47:02 +08:00
Limit the number of TLS resumption requests to one.
This commit is contained in:
@@ -486,6 +486,13 @@ int handle_commands(main_server_st * s, struct proc_st *proc)
|
||||
SESSION_RESUME_REPLY_MSG__INIT;
|
||||
SessionResumeFetchMsg *fmsg;
|
||||
|
||||
if (proc->resume_reqs > 0) {
|
||||
mslog(s, proc, LOG_ERR, "too many resumption requests");
|
||||
ret = ERR_BAD_COMMAND;
|
||||
goto cleanup;
|
||||
}
|
||||
proc->resume_reqs++;
|
||||
|
||||
fmsg =
|
||||
session_resume_fetch_msg__unpack(&pa, raw_len,
|
||||
raw);
|
||||
|
||||
Reference in New Issue
Block a user