projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291ae60
)
Fix the fix (Yoram Zahavi)...
author
Lutz Jänicke
<jaenicke@openssl.org>
Wed, 27 Feb 2002 11:24:39 +0000
(11:24 +0000)
committer
Lutz Jänicke
<jaenicke@openssl.org>
Wed, 27 Feb 2002 11:24:39 +0000
(11:24 +0000)
Submitted by:
Reviewed by:
PR:
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 2b60d7288feb7f0c2607ea6b68c9eeb947a5383e..eaf1abdd1b3fb967e99ba1b9eb89305753c9654f 100644
(file)
--- 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;