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

This commit is contained in:
resoli 2014-11-07 12:48:43 +01:00
parent 56684d857c
commit 7fea6eb8ba
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 != SC_SUCCESS || r != 16 ) {
if ( r!=16 ) {
return SC_ERROR_WRONG_CARD;
}