From 332f3d30ce283c8402e1830e965089563e9e62d5 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 25 May 2017 11:16:04 +0000 Subject: [PATCH] Reduce chat()'s stack usage ... by removing a buffer that was left from a previous refactoring. Sponsored by: Robert Klemme --- jcc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/jcc.c b/jcc.c index 1dbf5129..6bcd82e7 100644 --- 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) -- 2.49.0