diff options
author | Bodo Möller <bodo@openssl.org> | 2001-10-24 19:03:22 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-10-24 19:03:22 +0000 |
commit | 979689aa5cfa100ccbc1f25064e9398be4b7b05c (patch) | |
tree | 363dad35cdaaba2b61eb34898433e4fb0495bcde /ssl/ssl_lib.c | |
parent | a3faebd1041576a59bffe01bbd2c68495870ec5e (diff) |
Fix SSL handshake functions and SSL_clear() such that SSL_clear()
never resets s->method to s->ctx->method when called from within
one of the SSL handshake functions.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 7257daa8ff..72821a1fce 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -193,7 +193,7 @@ int SSL_clear(SSL *s) #if 1 /* Check to see if we were changed into a different method, if * so, revert back if we are not doing session-id reuse. */ - if ((s->session == NULL) && (s->method != s->ctx->method)) + if (!s->in_handshake && (s->session == NULL) && (s->method != s->ctx->method)) { s->method->ssl_free(s); s->method=s->ctx->method; |