Indenting fix and stronger limit on serial number length.

This commit is contained in:
emRoberto Resoli/em 2014-11-06 16:17:51 +01:00
parent 0e06427754
commit 255c0335a1
1 changed files with 3 additions and 2 deletions

View File

@ -482,14 +482,15 @@ static int itacns_select_file(sc_card_t *card,
static int itacns_get_serialnr(sc_card_t *card, sc_serial_number_t *serial)
{
sc_path_t path;
sc_file_t *file;
sc_file_t *file;
int r;
unsigned char ef_id_carta[16];
sc_format_path("3F0010001003", &path);
r = sc_select_file(card, &path, &file);
if (r != SC_SUCCESS || file->size > 16) {
if (r != SC_SUCCESS || file->size != 16) {
return SC_ERROR_WRONG_CARD;
}