]> granicus.if.org Git - openssl/commitdiff
Free the Kerberos context upon freeing the SSL.
authorRichard Levitte <levitte@openssl.org>
Sat, 27 Sep 2003 07:35:07 +0000 (07:35 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Sep 2003 07:35:07 +0000 (07:35 +0000)
Contributed by Andrew Mann <amann@tccgi.com>

ssl/ssl_lib.c

index ea76cf11728e1e66ee30a20ee60e14d37e62d9a3..0c84e3dddddea4a139096d37e36527bdee467877 100644 (file)
@@ -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);
        }