Skip to content

Conversation

@arut
Copy link
Contributor

@arut arut commented Nov 22, 2024

In case of wbio allocation error, rbio leaked.
An alternative solution could be calling SSL_set0_rbio() and SSL_set0_wbio() instead of SSL_set_bio().
The suggested change is a bit simpler though.

@arut arut requested a review from pluknet November 22, 2024 09:27
Copy link
Contributor

@pluknet pluknet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSL_set0_rbio() and SSL_set0_wbio() have portability issues, so using SSL_set_bio() is preferred.

@arut arut merged commit 0864cca into nginx:master Nov 25, 2024
1 check passed
@arut arut deleted the compat-bio-free branch November 25, 2024 12:22
@Maryna-f5 Maryna-f5 added this to the nginx-1.27.3 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants