mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
parent
a5b94f04fd
commit
ab157777e3
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ void X509Common::ParseSignedCertificateTimestamps(X509_EXTENSION* ext)
|
||||||
ext_val->length);
|
ext_val->length);
|
||||||
if ( ! inner )
|
if ( ! inner )
|
||||||
{
|
{
|
||||||
|
OPENSSL_free(ext_val_second_pointer);
|
||||||
reporter->Error(
|
reporter->Error(
|
||||||
"X509::ParseSignedCertificateTimestamps could not parse inner octet string");
|
"X509::ParseSignedCertificateTimestamps could not parse inner octet string");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue