Merge remote-tracking branch 'security/topic/awelzel/205-x509-sct-leak'

* security/topic/awelzel/205-x509-sct-leak:
  X509Common/SCT parsing: Fix memory leak in error case
This commit is contained in:
Tim Wojtulewicz 2023-10-27 11:03:44 -07:00
commit c8363743a5

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;