Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#3900] Ensure we not leave data in the BIO when error happens. #4578

Closed
wants to merge 1 commit into from

Conversation

normanmaurer
Copy link
Member

Motivation:

We need to ensure we consume all pending data in the BIO on error to correctly send the close notify for the remote peer.

Modifications:

Correctly force the user to call wrap(...) if there is something left in the BIO.

Result:

close_notify is not lost.

Motivation:

We need to ensure we consume all pending data in the BIO on error to correctly send the close notify for the remote peer.

Modifications:

Correctly force the user to call wrap(...) if there is something left in the BIO.

Result:

close_notify is not lost.
@normanmaurer normanmaurer self-assigned this Dec 16, 2015
@normanmaurer normanmaurer added this to the 4.0.34.Final milestone Dec 16, 2015
@normanmaurer
Copy link
Member Author

@trustin PTAL

@trustin
Copy link
Member

trustin commented Dec 17, 2015

Cherry-picked: 0d62d4c (4.0) and 253cd69 (4.1)

@trustin trustin closed this Dec 17, 2015
@trustin trustin deleted the openssl_pending_alert_data branch December 17, 2015 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants