-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
gh-106831: Fix NULL
check of d2i_SSL_SESSION
result in _ssl.c
#106832
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vstinner you've recently commited to this module, would you have time to take a look at the fix I am proposing? :)
Oh no. What did I do?
😆 ad95c72 Done, I've addressed your review. Thanks for the quick feedback 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
goto error; | ||
} | ||
const_p = senc; | ||
newsession = d2i_SSL_SESSION(NULL, &const_p, slen); | ||
if (session == NULL) { | ||
if (newsession == NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, now I see the typo! Previous, session was checked, but newsession must checked! Nicely spotted.
…pythonGH-106832) (cherry picked from commit ebf2c56) Co-authored-by: Nikita Sobolev <[email protected]>
GH-106835 is a backport of this pull request to the 3.12 branch. |
…pythonGH-106832) (cherry picked from commit ebf2c56) Co-authored-by: Nikita Sobolev <[email protected]>
GH-106836 is a backport of this pull request to the 3.11 branch. |
@vstinner you've recently commited to this module, would you have time to take a look at the fix I am proposing? :)
Modules/_ssl.c
#106831