Return the correct error value when a null query fails.
This commit is contained in:
parent
00dc18b5a8
commit
7961e48467
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120405
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user