Add a missing call to close_client_ssl_connection()
authorFabian Keil <fk@fabiankeil.de>
Tue, 10 Mar 2020 14:06:38 +0000 (15:06 +0100)
committerFabian Keil <fk@fabiankeil.de>
Thu, 12 Mar 2020 10:07:21 +0000 (11:07 +0100)
... to fix a memory leak.

Sponsored by: Robert Klemme

jcc.c

diff --git a/jcc.c b/jcc.c
index 99c423c..614c7f1 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -3776,6 +3776,9 @@ static void chat(struct client_state *csp)
           * client body in the buffer (if there is one) and to
           * continue parsing the bytes that follow.
           */
           * client body in the buffer (if there is one) and to
           * continue parsing the bytes that follow.
           */
+#ifdef FEATURE_HTTPS_INSPECTION
+         close_client_ssl_connection(csp);
+#endif
          drain_and_close_socket(csp->cfd);
          csp->cfd = JB_INVALID_SOCKET;
 
          drain_and_close_socket(csp->cfd);
          csp->cfd = JB_INVALID_SOCKET;