From: Richard Levitte Date: Sat, 27 Sep 2003 07:35:07 +0000 (+0000) Subject: Free the Kerberos context upon freeing the SSL. X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e6c20da462da07faebe8b685b294e72b018cc43;p=thirdparty%2Fopenssl.git Free the Kerberos context upon freeing the SSL. Contributed by Andrew Mann --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ea76cf11728..0c84e3ddddd 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -477,6 +477,11 @@ void SSL_free(SSL *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); }