You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function SSL_new() returns NULL if the creation of a new SSL structure failed. However , the return value of function SSL_new() is not checked. See the following code:
I've found SSL_new() usage in 9 different places. Sometimes we check that it's non-NULL before taking actions on it, but then we do cleanup (eg SSL_free()) regardless. So I'm not sure if these APIs deal with NULL properly or we need to add more checks and also, how should we properly be handling errors? I think this needs to be handled within the context of the overall ATS SSL arch. Perhaps @shinrich can take a look? It's also possible that nothing at all needs to be done in most cases.
Activity
bryancall commentedon May 30, 2019
Relates to #4292
bryancall commentedon May 30, 2019
@lc3412 Did you want to make a PR for this?
PSUdaemon commentedon Oct 29, 2019
I've found
SSL_new()usage in 9 different places. Sometimes we check that it's non-NULL before taking actions on it, but then we do cleanup (egSSL_free()) regardless. So I'm not sure if these APIs deal with NULL properly or we need to add more checks and also, how should we properly be handling errors? I think this needs to be handled within the context of the overall ATS SSL arch. Perhaps @shinrich can take a look? It's also possible that nothing at all needs to be done in most cases.alokrahul513 commentedon Feb 10, 2021
Hi, I want to work on this issue. How to get started?
bryancall commentedon Jun 25, 2021
@shinrich is going to put up a PR for this