diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-02-27 11:23:05 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-02-27 11:23:05 +0000 |
commit | d62bfb39cd1d41856b82a76158483df12bcab7d6 (patch) | |
tree | 5b459f4a9a92391f449be6d4e5909cee56b1966d /ssl | |
parent | ce4b274aa1b0c584b0b863e888acb954d5040352 (diff) |
Fix the fix (Yoram Zahavi)...
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |