fixed binary comparison

This commit is contained in:
Frank Morgner 2017-10-27 19:11:15 +02:00
parent 4251a362b5
commit 854123c75e
2 changed files with 2 additions and 2 deletions

View File

@ -1053,7 +1053,7 @@ gids_get_container_detail(sc_card_t* card, sc_cardctl_gids_get_container_t* cont
memset(container, 0, sizeof(sc_cardctl_gids_get_container_t));
container->containernum = num;
if (!records[num].bFlags & CONTAINER_MAP_VALID_CONTAINER) {
if (!(records[num].bFlags & CONTAINER_MAP_VALID_CONTAINER)) {
return SC_SUCCESS;
}
// ignore problematic containers

View File

@ -655,7 +655,7 @@ static int jcop_set_security_env(sc_card_t *card,
return SC_ERROR_INVALID_ARGUMENTS;
}
apdu.le = 0;
if (!env->flags & SC_SEC_ENV_ALG_REF_PRESENT)
if (!(env->flags & SC_SEC_ENV_ALG_REF_PRESENT))
return SC_ERROR_INVALID_ARGUMENTS;
if (!(env->flags & SC_SEC_ENV_FILE_REF_PRESENT))
return SC_ERROR_INVALID_ARGUMENTS;