- Accessed file->type after freeing file (S. Henson)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@677 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-08-20 08:39:11 +00:00
parent 97119f75e8
commit fa04f5e4ad
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ int enum_dir(struct sc_path path, int depth)
print_file(card, file, &path, depth);
file_type = file->type;
sc_file_free(file);
if (file->type == SC_FILE_TYPE_DF) {
if (file_type == SC_FILE_TYPE_DF) {
int i;
r = sc_list_files(card, files, sizeof(files));