From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 26 Sep 2009 13:32:35 +0000 (+0000)
Subject: In receive_client_request(), mark the server socket tainted if get_request_line(... 
X-Git-Tag: v_3_0_15~49
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/faq/user-manual/@proxy-info-url@?a=commitdiff_plain;h=64ab8d4be5ba8be958e523d487e7db689c18a9ec;p=privoxy.git

In receive_client_request(), mark the server socket tainted if get_request_line() fails.
---

diff --git a/jcc.c b/jcc.c
index 12dc1db1..a09621ec 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.293 2009/09/18 18:52:33 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.294 2009/09/18 18:57:20 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1330,6 +1330,7 @@ static jb_err receive_client_request(struct client_state *csp)
    req = get_request_line(csp);
    if (req == NULL)
    {
+      mark_server_socket_tainted(csp);
       return JB_ERR_PARSE;
    }
    assert(*req != '\0');