Free the Kerberos context upon freeing the SSL.
Contributed by Andrew Mann <amann@tccgi.com>
This commit is contained in:
parent
f6b659cba4
commit
0e6c20da46
@ -477,6 +477,11 @@ void SSL_free(SSL *s)
|
|||||||
|
|
||||||
if (s->method != NULL) s->method->ssl_free(s);
|
if (s->method != NULL) s->method->ssl_free(s);
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_KRB5
|
||||||
|
if (s->kssl_ctx != NULL)
|
||||||
|
kssl_ctx_free(s->kssl_ctx);
|
||||||
|
#endif /* OPENSSL_NO_KRB5 */
|
||||||
|
|
||||||
OPENSSL_free(s);
|
OPENSSL_free(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user