1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-19 07:52:23 +01:00

reset yk_errno when we're happy with the result

This commit is contained in:
Klas Lindfors 2015-09-14 13:14:51 +02:00
parent 056dac4794
commit 83cccf3e12

View File

@ -637,6 +637,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username)
DBG(("Challenge-response success!"));
errstr = NULL;
errno = 0;
yk_errno = 0;
restpriv_out:
if (!cfg->chalresp_path) {