mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
removed pointless check
This commit is contained in:
@@ -431,7 +431,7 @@ int handle_sec_auth_stats_cmd(sec_mod_st * sec, const CliStatsMsg * req)
|
||||
}
|
||||
|
||||
if (e->status != PS_AUTH_COMPLETED) {
|
||||
seclog(sec, LOG_ERR, "session stats received in unauthenticated client!");
|
||||
seclog(sec, LOG_ERR, "session stats received in unauthenticated client %s (session: %s)!", e->username, e->printable_sid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -551,11 +551,6 @@ int handle_sec_auth_init(int cfd, sec_mod_st * sec, const SecAuthInitMsg * req)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (e->status != PS_AUTH_INACTIVE) {
|
||||
seclog(sec, LOG_ERR, "auth init received for '%s' (session: %s), but we are on state %u!", e->username, e->printable_sid, e->status);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = set_module(sec, e, req->auth_type);
|
||||
if (ret < 0) {
|
||||
seclog(sec, LOG_ERR, "no module found for auth type %u", (unsigned)req->auth_type);
|
||||
|
||||
Reference in New Issue
Block a user