From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 10 Jan 2021 07:46:35 +0000 (+0100)
Subject: parse_client_request(): Fix status code in a LOG_LEVEL_CLF message
X-Git-Tag: v_3_0_30~137
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/diff?a=commitdiff_plain;h=cd0f01742b2822c9e154e3a6394d6c0f3f53e793;p=privoxy.git

parse_client_request(): Fix status code in a LOG_LEVEL_CLF message
---

diff --git a/jcc.c b/jcc.c
index 930c2991..ff390f1a 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1981,7 +1981,7 @@ static jb_err parse_client_request(struct client_state *csp)
          strlen(MESSED_UP_REQUEST_RESPONSE), get_write_delay(csp));
       /* XXX: Use correct size */
       log_error(LOG_LEVEL_CLF,
-         "%s - - [%T] \"Invalid request generated\" 500 0", csp->ip_addr_str);
+         "%s - - [%T] \"Invalid request generated\" 400 0", csp->ip_addr_str);
       log_error(LOG_LEVEL_ERROR,
          "Invalid request line after applying header filters.");
       free_http_request(http);