From: Richard Levitte Date: Sat, 27 Sep 2003 07:33:28 +0000 (+0000) Subject: Free the Kerberos context upon freeing the SSL. X-Git-Tag: OpenSSL_0_9_7c~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c9b552534e5a256782caf296553edc443c65427a;p=oweals%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 ddd8114587..6d69890688 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -473,6 +473,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); }