Skip to content

Commit

Permalink
reset yk_errno when we're happy with the result
Browse files Browse the repository at this point in the history
  • Loading branch information
klali committed Sep 14, 2015
1 parent 056dac4 commit 83cccf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pam_yubico.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 83cccf3

Please sign in to comment.