From: Fabian Keil Date: Sun, 21 Oct 2012 12:36:25 +0000 (+0000) Subject: Use IOB_RESET() in prepare_csp_for_next_request() X-Git-Tag: v_3_0_20~236 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=4d3d1c369293e11e5a6bb3c948a92e4a9fbe1500 Use IOB_RESET() in prepare_csp_for_next_request() --- diff --git a/jcc.c b/jcc.c index 294255c2..4a9125fc 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.390 2012/10/21 12:30:37 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.391 2012/10/21 12:35:15 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2459,8 +2459,7 @@ static void prepare_csp_for_next_request(struct client_state *csp) csp->expected_content_length = 0; csp->expected_client_content_length = 0; list_remove_all(csp->headers); - freez(csp->iob->buf); - memset(csp->iob, 0, sizeof(csp->iob)); + IOB_RESET(csp->iob); freez(csp->error_message); free_http_request(csp->http); destroy_list(csp->headers);