Return the correct error value when a null query fails.

This commit is contained in:
Dag-Erling Smørgrav 2003-09-24 18:24:27 +00:00
parent 00dc18b5a8
commit 7961e48467
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120405

View File

@ -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;