Skip to content

Commit 47acef7

Browse files
committed
Only when not emulation.
Signed-off-by: Pol Henarejos <[email protected]>
1 parent bb641ee commit 47acef7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/hsm/cmd_list_keys.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ int cmd_list_keys() {
6060
res_APDU[res_APDU_size++] = f->fid & 0xff;
6161
}
6262
}
63-
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
63+
#if !defined(ENABLE_EMULATION)
64+
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
65+
res_APDU[res_APDU_size++] = 0;
6466
res_APDU[res_APDU_size++] = 0;
65-
res_APDU[res_APDU_size++] = 0;
6667
}
68+
#endif
6769
return SW_OK();
6870
}

0 commit comments

Comments
 (0)