libopensc: set 'enumerated' flag for xDF if corresponding EF file was successfully read ...

it's an extention of r4983, that was not properly working for the existing but empty xDF files.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5023 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
vtarasov 2011-01-02 14:22:38 +00:00
parent 4b5bc9900c
commit d45fb4ca1b
1 changed files with 1 additions and 4 deletions

View File

@ -1598,15 +1598,12 @@ int sc_pkcs15_parse_df(struct sc_pkcs15_card *p15card,
"%s: Error adding object", sc_strerror(r));
goto ret;
}
/* Flag that DF as enumerated, after the first valid object
* was found and the internal obj_list became modified. */
df->enumerated = 1;
};
if (r > 0)
r = 0;
ret:
df->enumerated = 1;
free(buf);
SC_FUNC_RETURN(ctx, SC_LOG_DEBUG_NORMAL, r);
}