itacns_get_serialnr(): check sc_read_binary() returned data length (only).
This commit is contained in:
parent
7fea6eb8ba
commit
867176b0f7
@ -516,7 +516,7 @@ static int itacns_get_serialnr(sc_card_t *card, sc_serial_number_t *serial)
|
||||
}
|
||||
|
||||
r = sc_read_binary(card, 0, rbuf, 256, 0);
|
||||
if ( r!=16 ) {
|
||||
if ( r != 16 ) {
|
||||
return SC_ERROR_WRONG_CARD;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user