Crash in SSL_do_handshake: s->method->ssl_renegotiate_check(s)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux