X509Common/SCT parsing: Fix memory leak in error case

Failed to free the copy of the OCSP extension's value the inner
octet string couldn't be parsed.
This commit is contained in:
Arne Welzel 2023-10-23 16:39:09 +02:00 committed by Tim Wojtulewicz
parent c9c221da05
commit 0906db4fb1

View file

@ -209,6 +209,7 @@ void X509Common::ParseSignedCertificateTimestamps(X509_EXTENSION* ext)
ext_val->length);
if ( ! inner )
{
OPENSSL_free(ext_val_second_pointer);
reporter->Error(
"X509::ParseSignedCertificateTimestamps could not parse inner octet string");
return;