[p15dump] Error message with a reason for missing unusedSpace file

This commit is contained in:
Jakub Jelen 2016-05-23 16:52:09 +02:00 committed by Frank Morgner
parent 9066d8f999
commit f52f6bb310

View File

@ -69,8 +69,10 @@ static int dump_unusedspace(void)
else if (p15card->file_app != NULL) {
path = p15card->file_app->path;
sc_append_path_id(&path, (const u8 *) "\x50\x33", 2);
} else
} else {
printf("\nCan't find unused space file.\n");
return -1;
}
path.count = -1;
r = sc_pkcs15_read_file(p15card, &path, &buf, &buf_len);