Gang -
 
I hit this crash when I failed to call SSL_set_accept_state() in my server.
 
Adding SSL_set_accept_state() to my server solved the problem.
 
See the email archives for the actual words of wisdom from the OpenSSL
developer
staff... :)
 
TT

-----Original Message-----
From: Gang Lu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 09, 1999 11:07 AM
To: [EMAIL PROTECTED]
Subject: a bug in ssl3_write_bytes()?


In s3_pkt.c, there is a function called ssl3_write_bytes(). In that
function, there is a statement :
 
s->handshake_func(s)
 
If the server is suddenly shutdown when the client is writing bytes to the
server, this statement causes a segment fault error since s->handshake_func
is NULL. I think it should be fixed as
 
If( s->handshake_func != NULL)
    s->handshake_func(s)
 
After this change, there is no segment fault anymore if the server is
suddenly shutdown.
 
Gang

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to