[openssl-users] Strange problem with 1.0.2f SSL_shutdown in multithreaded server

Matt Caswell matt at openssl.org
Fri Feb 5 09:17:07 UTC 2016

On 05/02/16 04:25, Jakob Bohm wrote:
> I have not yet found the cause of this issue, however I have
> found that a minimal version of your patch which just adds
> back the SSL_in_init() condition seems to at least make the
> diagnostic test case (using s_client) work again.
> I have not kept the test for s being NULL, as that case would
> have crashed a few lines earlier in SSL_shutdown(), so can't
> reach the if statement anyway.
> I have attached the reduced patch, but I still think the real
> cause must be elsewhere.

I am currently pushing a very similar patch through the internal review
process. The main difference is that -1 is returned in the "else" case.
This is actually primarily to address a different issue, but it seems it
should help you too. It would be good to know the underlying cause though.


More information about the openssl-users mailing list