handle_sec_auth_cont: print status in readable form

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-12-01 20:46:31 +01:00
parent 9d98e08aa1
commit 6805023bd3

View File

@@ -704,8 +704,8 @@ int handle_sec_auth_cont(int cfd, sec_mod_st * sec, const SecAuthContMsg * req)
}
if (e->status != PS_AUTH_INIT && e->status != PS_AUTH_CONT) {
seclog(sec, LOG_ERR, "auth cont received for %s "SESSION_STR" but we are on state %u!",
e->acct_info.username, e->acct_info.safe_id, e->status);
seclog(sec, LOG_ERR, "auth cont received for %s "SESSION_STR" but we are on state %s(%u)!",
e->acct_info.username, e->acct_info.safe_id, ps_status_to_str(e->status), e->status);
ret = -1;
goto cleanup;
}