From: Fabian Keil Date: Mon, 10 Feb 2014 14:42:42 +0000 (+0000) Subject: Do not pass rejected keep-alive timeouts to the server X-Git-Tag: v_3_0_22~185 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=7b6a23a1fddd4997ccd35abdc54651710e5c33f9 Do not pass rejected keep-alive timeouts to the server It might not have caused any problems (we know of), but doing the right thing shouldn't hurt either. --- diff --git a/parsers.c b/parsers.c index 29d52e4d..d3e8f154 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.282 2013/12/24 13:34:45 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.283 2014/02/10 14:42:18 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -1758,6 +1758,7 @@ static jb_err client_keep_alive(struct client_state *csp, char **header) log_error(LOG_LEVEL_HEADER, "Couldn't parse: '%s'. Using default timeout %u", *header, csp->config->keep_alive_timeout); + freez(*header); return JB_ERR_OK; } @@ -1776,6 +1777,7 @@ static jb_err client_keep_alive(struct client_state *csp, char **header) log_error(LOG_LEVEL_HEADER, "Client keep-alive timeout is %u. Sticking with %u.", keep_alive_timeout, csp->config->keep_alive_timeout); + freez(*header); } return JB_ERR_OK;