summaryrefslogtreecommitdiff
path: root/auth-chall.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-09-23 22:12:38 +1000
committerDamien Miller <djm@mindrot.org>2003-09-23 22:12:38 +1000
commit5c3a55846a87a40d10aaf08123e4101388d22b87 (patch)
treea45c4d5280d6302b64e7f6565715bb358e62102d /auth-chall.c
parent7ff4e6dbe588aab63f1547e917734730f388aaa4 (diff)
downloadopenssh-git-5c3a55846a87a40d10aaf08123e4101388d22b87.tar.gz
- (djm) Sync with V_3_7 branch:
- (djm) Fix SSH1 challenge kludge - (djm) Bug #671: Fix builds on OpenBSD - (djm) Bug #676: Fix PAM stack corruption - (djm) Fix bad free() in PAM code - (djm) Don't call pam_end before pam_init - (djm) Enable build with old OpenSSL again - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
Diffstat (limited to 'auth-chall.c')
-rw-r--r--auth-chall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth-chall.c b/auth-chall.c
index 6b7c8bd1..00d6e0ec 100644
--- a/auth-chall.c
+++ b/auth-chall.c
@@ -92,7 +92,7 @@ verify_response(Authctxt *authctxt, const char *response)
xfree(info);
}
/* if we received more prompts, we're screwed */
- res = (numprompts != 0);
+ res = (res == 0 && numprompts == 0) ? 0 : -1;
}
device->free_ctx(authctxt->kbdintctxt);
authctxt->kbdintctxt = NULL;