]> err.no Git - yubikey-personalization/commitdiff
have to return when hitting the error
authorKlas Lindfors <klas@yubico.com>
Thu, 26 Apr 2012 07:24:30 +0000 (09:24 +0200)
committerKlas Lindfors <klas@yubico.com>
Thu, 26 Apr 2012 07:24:30 +0000 (09:24 +0200)
ykpers.c

index 6b827a0fbafca83961ea584e5c7738186e80d696..c1d133861356e40dbce006849ca2512bc1b0bf01 100644 (file)
--- a/ykpers.c
+++ b/ykpers.c
@@ -187,8 +187,10 @@ int ykp_configure_command(YKP_CONFIG *cfg, uint8_t command)
        case SLOT_NDEF:
                /* NDEF is available for neo, thus within 2.1 from build 4 */
                if (!(cfg->yk_major_version == 2 && cfg->yk_minor_version == 1 &&
-                         cfg->yk_build_version >= 4))
+                         cfg->yk_build_version >= 4)) {
                        ykp_errno = YKP_EYUBIKEYVER;
+                       return 0;
+               }
                break;
        default:
                ykp_errno = YKP_EINVCONFNUM;