From: Fabian Keil Date: Sun, 21 Oct 2012 12:59:40 +0000 (+0000) Subject: In verify_request_length(), use clear_iob() when nuking pipelined data X-Git-Tag: v_3_0_20~221 X-Git-Url: http://www.privoxy.org/gitweb/contact.html?a=commitdiff_plain;h=ea0d5e38df82eff6d90b638c1eea731ce7241170;p=privoxy.git In verify_request_length(), use clear_iob() when nuking pipelined data --- diff --git a/jcc.c b/jcc.c index cbad64fd..075f23c0 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.400 2012/10/21 12:56:38 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.401 2012/10/21 12:58:03 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -1134,8 +1134,7 @@ static void verify_request_length(struct client_state *csp) "Possible pipeline attempt detected. The connection will not " "be kept alive and we will only serve the first request."); /* Nuke the pipelined requests from orbit, just to be sure. */ - csp->client_iob->buf[0] = '\0'; - csp->client_iob->eod = csp->client_iob->cur = csp->client_iob->buf; + clear_iob(csp->client_iob); } else {