aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-01-14 23:40:26 +0000
committerBodo Möller <bodo@openssl.org>2002-01-14 23:40:26 +0000
commit8c74b5e56ce4515c8f0c16a79788cf083f8c101e (patch)
tree26d1e17a85a2f42ffcc3a17c8e1e610c352b81f6 /ssl/ssl_lib.c
parentc59ba5b5287b6e4ab6bd8e097baab579622d8160 (diff)
downloadopenssl-8c74b5e56ce4515c8f0c16a79788cf083f8c101e.zip
openssl-8c74b5e56ce4515c8f0c16a79788cf083f8c101e.tar.gz
openssl-8c74b5e56ce4515c8f0c16a79788cf083f8c101e.tar.bz2
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.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 2bd30d9..49e22bf 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -891,7 +891,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));
}