From: Klas Lindfors Date: Fri, 9 Nov 2012 13:12:16 +0000 (+0100) Subject: reset errnum if we found a key on second attempt X-Git-Tag: v1.10.0~35 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a007ae122cca5d197ae8e0f031157117d4dfbe3;p=yubikey-personalization reset errnum if we found a key on second attempt --- diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index c57d394..055af0d 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -68,6 +68,7 @@ YK_KEY *yk_open_first_key(void) } if (yk) { + rc = 0; YK_STATUS st; if (!yk_get_status(yk, &st)) {