mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
when a user is rejected due to multiple connections set an appropriate status.
This commit is contained in:
@@ -401,6 +401,7 @@ static int handle_auth_res(main_server_st * s, struct proc_st *proc,
|
||||
} else if (result == 0) {
|
||||
ret = accept_user(s, proc, cmd);
|
||||
if (ret < 0) {
|
||||
proc->status = PS_AUTH_FAILED;
|
||||
goto finished;
|
||||
}
|
||||
proc->status = PS_AUTH_COMPLETED;
|
||||
|
||||
Reference in New Issue
Block a user