diff --git a/.gitignore b/.gitignore index 7146a8c3..cd1bacf4 100644 --- a/.gitignore +++ b/.gitignore @@ -152,3 +152,4 @@ libhmac_la-usha.o ykpersonalize.1 ykchalresp.1 ykinfo.1 +*.xml diff --git a/ykpers.c b/ykpers.c index 9ccd49e6..ae0c65c2 100644 --- a/ykpers.c +++ b/ykpers.c @@ -166,7 +166,7 @@ int ykp_configure_command(YKP_CONFIG *cfg, uint8_t command) case SLOT_CONFIG: break; case SLOT_CONFIG2: - if (!cfg->yk_major_version >= 2) { + if (!(cfg->yk_major_version >= 2)) { ykp_errno = YKP_EOLDYUBIKEY; return 0; }