Reduce chat()'s stack usage
authorFabian Keil <fk@fabiankeil.de>
Thu, 25 May 2017 11:16:04 +0000 (11:16 +0000)
committerFabian Keil <fk@fabiankeil.de>
Thu, 25 May 2017 11:16:04 +0000 (11:16 +0000)
... by removing a buffer that was left from a previous
refactoring.

Sponsored by: Robert Klemme

jcc.c

diff --git a/jcc.c b/jcc.c
index 1dbf512..6bcd82e 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.453 2017/05/20 09:24:08 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.454 2017/05/25 11:14:38 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -2700,14 +2700,11 @@ static void handle_established_connection(struct client_state *csp,
  *********************************************************************/
 static void chat(struct client_state *csp)
 {
-   char buf[BUFFER_SIZE];
    const struct forward_spec *fwd;
    struct http_request *http;
    /* Skeleton for HTTP response, if we should intercept the request */
    struct http_response *rsp;
 
-   memset(buf, 0, sizeof(buf));
-
    http = csp->http;
 
    if (receive_client_request(csp) != JB_ERR_OK)