Skip to content

Commit dfe6f0c

Browse files
committed
Fix netscape spki leak in openssl
1 parent a0da2fb commit dfe6f0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/openssl/openssl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,9 @@ PHP_FUNCTION(openssl_spki_export_challenge)
20762076
if (spkstr_cleaned != NULL) {
20772077
efree(spkstr_cleaned);
20782078
}
2079+
if (spki) {
2080+
NETSCAPE_SPKI_free(spki);
2081+
}
20792082
}
20802083
/* }}} */
20812084

0 commit comments

Comments
 (0)