diff options
author | Richard Levitte <levitte@openssl.org> | 2003-09-27 07:35:07 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-09-27 07:35:07 +0000 |
commit | 0e6c20da462da07faebe8b685b294e72b018cc43 (patch) | |
tree | 97ad979a66103cf3e45d2357f1684a604eff3db3 /ssl | |
parent | f6b659cba4bab69cd36cdc492f2bdab2d848d819 (diff) |
Free the Kerberos context upon freeing the SSL.
Contributed by Andrew Mann <amann@tccgi.com>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index ea76cf1172..0c84e3dddd 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); } |