pkcs15: fix length of 'last-update' read
This commit is contained in:
parent
260b7711b9
commit
220d80fcec
|
@ -552,11 +552,8 @@ sc_pkcs15_get_lastupdate(struct sc_pkcs15_card *p15card)
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (file->size) {
|
size = file->size ? file->size : 1024;
|
||||||
size = 1024;
|
|
||||||
} else {
|
|
||||||
size = file->size;
|
|
||||||
}
|
|
||||||
content = calloc(size, 1);
|
content = calloc(size, 1);
|
||||||
if (!content)
|
if (!content)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue