From 005a1d4afd94fdcab57e282de3965480f72b2688 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 24 Sep 2003 18:24:27 +0000 Subject: Return the correct error value when a null query fails. --- crypto/openssh/auth-chall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/openssh') 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; -- cgit v1.1