summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-09-24 18:24:27 +0000
committerdes <des@FreeBSD.org>2003-09-24 18:24:27 +0000
commit005a1d4afd94fdcab57e282de3965480f72b2688 (patch)
tree9287baf45b773b3aba87a332af3715cfae09dace /crypto
parentea8586b3566d549c41977329ef2a2344d3735405 (diff)
downloadFreeBSD-src-005a1d4afd94fdcab57e282de3965480f72b2688.zip
FreeBSD-src-005a1d4afd94fdcab57e282de3965480f72b2688.tar.gz
Return the correct error value when a null query fails.
Diffstat (limited to 'crypto')
-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 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;
OpenPOWER on IntegriCloud