From: Klas Lindfors Date: Thu, 26 Apr 2012 07:24:30 +0000 (+0200) Subject: have to return when hitting the error X-Git-Tag: v1.7.0~1^2~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f92c78740a881fb896d8b53054021b8cc935e3;p=yubikey-personalization have to return when hitting the error --- diff --git a/ykpers.c b/ykpers.c index 6b827a0..c1d1338 100644 --- 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;