From 82296f46320d2bfa8950f85da1124ab3882381eb Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Fri, 10 Feb 2012 15:13:42 +0100 Subject: [PATCH] do_challenge_response: Clear errno when done. --- pam_yubico.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pam_yubico.c b/pam_yubico.c index 9766afc..19ce8c6 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -628,6 +628,7 @@ do_challenge_response(pam_handle_t *pamh, struct cfg *cfg, const char *username) DBG(("Challenge-response success!")); errstr = NULL; + errno = 0; out: if (yk_errno) {