Fix finding meta_data.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
3431293d43
commit
24502966ce
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ void process_fci(const file_t *pe) {
|
|||
res_APDU_size += 3;
|
||||
uint8_t *meta_data = NULL;
|
||||
uint8_t meta_size = meta_find(pe->fid, &meta_data);
|
||||
if (meta_size) {
|
||||
if (meta_size > 0 && meta_data != NULL) {
|
||||
res_APDU[res_APDU_size++] = 0xA5;
|
||||
res_APDU[res_APDU_size++] = 0x81;
|
||||
res_APDU[res_APDU_size++] = meta_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue