From: Lutz Jänicke Date: Wed, 27 Feb 2002 11:26:20 +0000 (+0000) Subject: Fix the fix (Yoram Zahavi)... X-Git-Tag: OpenSSL_0_9_6d-beta1~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec208566227852ab98661cde158a4a80630ebce2;p=oweals%2Fopenssl.git Fix the fix (Yoram Zahavi)... --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 4a32d3d659..4f84a3476d 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -92,6 +92,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; @@ -111,12 +117,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;