Bugfix: In ssl3_accept, don't use a local variable 'got_new_session'
to indicate that a real handshake is taking place (the value will be lost during multiple invocations). Set s->new_session to 2 instead.
This commit is contained in:
@@ -795,7 +795,10 @@ int SSL_shutdown(SSL *s)
|
||||
|
||||
int SSL_renegotiate(SSL *s)
|
||||
{
|
||||
s->new_session=1;
|
||||
if (s->new_session == 0)
|
||||
{
|
||||
s->new_session=1;
|
||||
}
|
||||
return(s->method->ssl_renegotiate(s));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user