Commit 0e6c20da authored by Richard Levitte's avatar Richard Levitte
Browse files

Free the Kerberos context upon freeing the SSL.

Contributed by Andrew Mann <amann@tccgi.com>
parent f6b659cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
	}