file size fix + removed unnecessary code from previous commit
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@889 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
16dfb55118
commit
7dab6baeee
|
@ -177,11 +177,9 @@ int sc_enum_apps(struct sc_card *card)
|
|||
free(buf);
|
||||
SC_TEST_RET(card->ctx, r, "read_binary() failed");
|
||||
}
|
||||
bufsize = file_size;
|
||||
bufsize = r;
|
||||
while (bufsize > 0) {
|
||||
if (card->app_count == SC_MAX_CARD_APPS) {
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
error(card->ctx, "Too many applications on card");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue