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:
Bodo Möller
2002-01-14 23:42:47 +00:00
parent 5f18fe493e
commit 19fa8cfe5a
5 changed files with 128 additions and 5 deletions

View File

@@ -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));
}