aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-09-24 18:24:27 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-09-24 18:24:27 +0000
commit7961e4846792cd35f0077c74e435f50e0fdb2abe (patch)
tree9287baf45b773b3aba87a332af3715cfae09dace
parent00dc18b5a81d05592ab4d139b91123d7af22c396 (diff)
Notes
-rw-r--r--crypto/openssh/auth-chall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/auth-chall.c b/crypto/openssh/auth-chall.c
index 1daa1441887d..6fff89273331 100644
--- a/crypto/openssh/auth-chall.c
+++ b/crypto/openssh/auth-chall.c
@@ -93,7 +93,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;