fixed Null-dereference READ

https://oss-fuzz.com/testcase-detail/5644373382922240
Thanks to OSS-Fuzz
This commit is contained in:
Frank Morgner 2019-11-06 23:38:37 +01:00
parent 1a069ca71e
commit a8de0070fd
1 changed files with 3 additions and 0 deletions

View File

@ -606,6 +606,9 @@ sc_pkcs15_free_prkey(struct sc_pkcs15_prkey *key)
void sc_pkcs15_free_prkey_info(sc_pkcs15_prkey_info_t *key)
{
if (!key)
return;
if (key->subject.value)
free(key->subject.value);