diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-02-27 11:24:39 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-02-27 11:24:39 +0000 |
commit | 21f422ca5e3fac01ca2966cdca9c516b1a044f87 (patch) | |
tree | 48301d095fb690bfc1dc927c91ecc15b852a1c5a /ssl/ssl_lib.c | |
parent | 291ae60b5290e4aff717d94dca7c6c0f87bd9adb (diff) |
Fix the fix (Yoram Zahavi)...
Submitted by:
Reviewed by:
PR:
Diffstat (limited to 'ssl/ssl_lib.c')
-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; |