Fix the fix (Yoram Zahavi)...
This commit is contained in:
parent
ce4b274aa1
commit
d62bfb39cd
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue