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

Fix the crash due to inconsistent enc_write_ctx on the 1.1.0 branch #2164

Conversation

bernd-edlinger
Copy link
Member

fix the error handling in ssl3_change_cipher_state

Checklist
  • CLA is signed
Description of change

This pull request is for trunk and 1.1.0 branch.

It fixes #2114 by checking the error code of EVP_CipherInit_ex and returning
it to the application, which has to avoid calling SSL_shutdown in this case.
I have noticed a memory leak in ssl3_generate_key_block that was not
there in the 1.0.2 branch.

fix the error handling in ssl3_change_cipher_state
@kroeckx kroeckx self-assigned this Jan 6, 2017
@kroeckx kroeckx added 1.1.0 branch: master Merge to master branch labels Jan 6, 2017
@kroeckx
Copy link
Member

kroeckx commented Jan 6, 2017

I assume this does not apply to the 1.0.2 branch and just 1.1.0 and master.

levitte pushed a commit that referenced this pull request Jan 23, 2017
…n ssl3_change_cipher_state

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #2164)
levitte pushed a commit that referenced this pull request Jan 23, 2017
…n ssl3_change_cipher_state

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #2164)
(cherry picked from commit a6fd7c1)
@levitte
Copy link
Member

levitte commented Jan 23, 2017

Merged.
master: a6fd7c1
1.1.0: 7bd011d

@levitte levitte closed this Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch: master Merge to master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants