Skip to content

Fix GH-22081: Memory leak in php_openssl_enable_crypto#22189

Merged
bukka merged 1 commit into
php:masterfrom
bukka:openssl_gh22081_enable_crypto_reneg_leak
May 30, 2026
Merged

Fix GH-22081: Memory leak in php_openssl_enable_crypto#22189
bukka merged 1 commit into
php:masterfrom
bukka:openssl_gh22081_enable_crypto_reneg_leak

Conversation

@bukka
Copy link
Copy Markdown
Member

@bukka bukka commented May 30, 2026

This was leaking because php_openssl_enable_crypto can be called multiple times. The reneg was moved there after the session changes so it needs to only happen once there.

The fix moves it (and some other parts that should be done just once) inside state_set block where it can run only once.

This was leaking because php_openssl_enable_crypto can be called
multiple times. The reneg was moved there after the session changes so
it needs to only happen once there.

The fix moves it (and some other parts that should be done just once)
inside state_set block where it can run only once.
@bukka bukka merged commit 639a57d into php:master May 30, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant