diff options
Diffstat (limited to 'auth-chall.c')
-rw-r--r-- | auth-chall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth-chall.c b/auth-chall.c index 6b7c8bd13..00d6e0ec5 100644 --- a/auth-chall.c +++ b/auth-chall.c | |||
@@ -92,7 +92,7 @@ verify_response(Authctxt *authctxt, const char *response) | |||
92 | xfree(info); | 92 | xfree(info); |
93 | } | 93 | } |
94 | /* if we received more prompts, we're screwed */ | 94 | /* if we received more prompts, we're screwed */ |
95 | res = (numprompts != 0); | 95 | res = (res == 0 && numprompts == 0) ? 0 : -1; |
96 | } | 96 | } |
97 | device->free_ctx(authctxt->kbdintctxt); | 97 | device->free_ctx(authctxt->kbdintctxt); |
98 | authctxt->kbdintctxt = NULL; | 98 | authctxt->kbdintctxt = NULL; |