[openssl-users] Crash in SSL_do_handshake: s->method->ssl_renegotiate_check(s)

Michael Clark michael at metaparadigm.com
Sat Apr 4 22:12:35 UTC 2015


On 5/4/15 3:46 am, Michael Clark wrote:
>   SSL_free(ssl_conn.ssl);
>   // TODO - crashes on subsequent connections in SSL_do_handshake if we
> close the fd.
>   //       
> ssl_lib.c::SSL_do_handshake::s->method->ssl_renegotiate_check(s);
>   //        Why? reuse of same fd number for subsequent connection?
>   //        comment the following line and the server works but leaks fds
>   close(ssl_conn.conn_fd);

This is what is happening:

http://i.imgur.com/6R6sg4L.png

For some reason s->s3 is NULL and ssl3_renegotiate_check is called.

The code (*1) is using TLSv1_server_method()

~mc

[1] https://github.com/michaeljclark/async_tls_test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150405/7f3f81b5/attachment.html>


More information about the openssl-users mailing list