From 83cccf3e12df1b1d5488932f992378bd38e5b42b Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 14 Sep 2015 13:14:51 +0200 Subject: [PATCH] reset yk_errno when we're happy with the result --- pam_yubico.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pam_yubico.c b/pam_yubico.c index bf1b55f..c010678 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -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) {