]> err.no Git - yubikey-personalization/commitdiff
reset errnum if we found a key on second attempt
authorKlas Lindfors <klas@yubico.com>
Fri, 9 Nov 2012 13:12:16 +0000 (14:12 +0100)
committerKlas Lindfors <klas@yubico.com>
Fri, 9 Nov 2012 13:12:16 +0000 (14:12 +0100)
ykcore/ykcore.c

index c57d39413675da9d83b6844fb62ea8cb6193286d..055af0dfe2d2193bec897867494a3fc40ca4fa8a 100644 (file)
@@ -68,6 +68,7 @@ YK_KEY *yk_open_first_key(void)
        }
 
        if (yk) {
+               rc = 0;
                YK_STATUS st;
 
                if (!yk_get_status(yk, &st)) {