Don't leak parts of the client headers if a timeout is triggered while reading the...
authorFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:48:50 +0000 (16:48 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:48:50 +0000 (16:48 +0000)
jcc.c

diff --git a/jcc.c b/jcc.c
index c5a8a4a..42c42b4 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.250 2009/05/16 13:27:20 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.251 2009/06/03 16:42:49 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1307,6 +1307,7 @@ static jb_err receive_client_request(struct client_state *csp)
          {
             log_error(LOG_LEVEL_ERROR,
                "Stopped grabbing the client headers.");
+            destroy_list(headers);
             return JB_ERR_PARSE;
          }