Adds error checking

This commit is contained in:
Frank Morgner 2015-10-14 22:16:44 +02:00
parent 94772c870a
commit 2ed4c8ae6c
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ static int miocos_select_file(sc_card_t *card,
r = iso_ops->select_file(card, in_path, file);
if (r)
return r;
if (file != NULL) {
if (file != NULL && *file != NULL) {
parse_sec_attr(*file, (*file)->sec_attr, (*file)->sec_attr_len);
miocos_get_acl(card, *file);
}