Fix P1P2 on termination check.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -1457,7 +1457,7 @@ static int cmd_pso() {
|
||||
}
|
||||
|
||||
static int cmd_terminate_df() {
|
||||
if (P1(apdu) != 0x0 && P2(apdu) != 0x0)
|
||||
if (P1(apdu) != 0x0 || P2(apdu) != 0x0)
|
||||
return SW_INCORRECT_P1P2();
|
||||
file_t *retries;
|
||||
if (!(retries = search_by_fid(EF_PW_PRIV, NULL, SPECIFY_EF)))
|
||||
|
||||
Reference in New Issue
Block a user