fixed Null-dereference READ
https://oss-fuzz.com/testcase-detail/5644373382922240 Thanks to OSS-Fuzz
This commit is contained in:
parent
1a069ca71e
commit
a8de0070fd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user