fixed binary comparison
This commit is contained in:
parent
4251a362b5
commit
854123c75e
|
@ -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));
|
memset(container, 0, sizeof(sc_cardctl_gids_get_container_t));
|
||||||
container->containernum = num;
|
container->containernum = num;
|
||||||
|
|
||||||
if (!records[num].bFlags & CONTAINER_MAP_VALID_CONTAINER) {
|
if (!(records[num].bFlags & CONTAINER_MAP_VALID_CONTAINER)) {
|
||||||
return SC_SUCCESS;
|
return SC_SUCCESS;
|
||||||
}
|
}
|
||||||
// ignore problematic containers
|
// ignore problematic containers
|
||||||
|
|
|
@ -655,7 +655,7 @@ static int jcop_set_security_env(sc_card_t *card,
|
||||||
return SC_ERROR_INVALID_ARGUMENTS;
|
return SC_ERROR_INVALID_ARGUMENTS;
|
||||||
}
|
}
|
||||||
apdu.le = 0;
|
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;
|
return SC_ERROR_INVALID_ARGUMENTS;
|
||||||
if (!(env->flags & SC_SEC_ENV_FILE_REF_PRESENT))
|
if (!(env->flags & SC_SEC_ENV_FILE_REF_PRESENT))
|
||||||
return SC_ERROR_INVALID_ARGUMENTS;
|
return SC_ERROR_INVALID_ARGUMENTS;
|
||||||
|
|
Loading…
Reference in New Issue