diff options
author | des <des@FreeBSD.org> | 2003-09-24 18:24:27 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-09-24 18:24:27 +0000 |
commit | 005a1d4afd94fdcab57e282de3965480f72b2688 (patch) | |
tree | 9287baf45b773b3aba87a332af3715cfae09dace /crypto/openssh | |
parent | ea8586b3566d549c41977329ef2a2344d3735405 (diff) | |
download | FreeBSD-src-005a1d4afd94fdcab57e282de3965480f72b2688.zip FreeBSD-src-005a1d4afd94fdcab57e282de3965480f72b2688.tar.gz |
Return the correct error value when a null query fails.
Diffstat (limited to 'crypto/openssh')
-rw-r--r-- | crypto/openssh/auth-chall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/auth-chall.c b/crypto/openssh/auth-chall.c index 1daa144..6fff892 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; |