Skip to content

Fix GH-22081: Memory leak in php_openssl_enable_crypto#22189

Open
bukka wants to merge 1 commit into
php:masterfrom
bukka:openssl_gh22081_enable_crypto_reneg_leak
Open

Fix GH-22081: Memory leak in php_openssl_enable_crypto#22189
bukka wants to merge 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.
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