itacns_get_serialnr(): check sc_read_binary() returned data length (only).

This commit is contained in:
resoli 2014-11-07 12:49:44 +01:00
parent 7fea6eb8ba
commit 867176b0f7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}