mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
pam: return empty message when not in the appropriate state
This commit is contained in:
@@ -205,8 +205,8 @@ static int pam_auth_msg(void* ctx, void *pool, char** msg)
|
||||
struct pam_ctx_st * pctx = ctx;
|
||||
|
||||
if (pctx->state != PAM_S_INIT && pctx->state != PAM_S_WAIT_FOR_PASS) {
|
||||
syslog(LOG_AUTH, "PAM-auth: conversation in wrong state (%d)", pctx->state);
|
||||
return ERR_AUTH_FAIL;
|
||||
*msg = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (pctx->state == PAM_S_INIT) {
|
||||
|
||||
Reference in New Issue
Block a user