From: Lutz Jänicke Date: Wed, 27 Feb 2002 11:24:39 +0000 (+0000) Subject: Fix the fix (Yoram Zahavi)... X-Git-Tag: OpenSSL_0_9_7-beta1~191 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21f422ca5e3fac01ca2966cdca9c516b1a044f87;p=oweals%2Fopenssl.git Fix the fix (Yoram Zahavi)... Submitted by: Reviewed by: PR: --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 2b60d7288f..eaf1abdd1b 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -143,6 +143,12 @@ int SSL_clear(SSL *s) return(0); } + if (ssl_clear_bad_session(s)) + { + SSL_SESSION_free(s->session); + s->session=NULL; + } + s->error=0; s->hit=0; s->shutdown=0; @@ -162,12 +168,6 @@ int SSL_clear(SSL *s) s->type=0; - if (ssl_clear_bad_session(s)) - { - SSL_SESSION_free(s->session); - s->session=NULL; - } - s->state=SSL_ST_BEFORE|((s->server)?SSL_ST_ACCEPT:SSL_ST_CONNECT); s->version=s->method->version;