From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 29 Oct 2012 12:00:50 +0000 (+0000)
Subject: In verify_request_length(), express 'unread client data available' in a more reasonab... 
X-Git-Tag: v_3_0_20~197
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/man-page/static/static/gitweb.js?a=commitdiff_plain;h=da981ad5481699218b5bd2fe0de2c78415650d3a;p=privoxy.git

In verify_request_length(), express 'unread client data available' in a more reasonable way
---

diff --git a/jcc.c b/jcc.c
index 7e894956..f29dea19 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.409 2012/10/29 11:59:34 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.410 2012/10/29 12:00:15 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1107,7 +1107,8 @@ static void verify_request_length(struct client_state *csp)
    }
 
    if (!(csp->flags & CSP_FLAG_CLIENT_REQUEST_COMPLETELY_READ)
-    && ((csp->client_iob->cur[0] != '\0') || (csp->expected_client_content_length != 0)))
+      && ((csp->client_iob->cur < csp->client_iob->eod)
+         || (csp->expected_client_content_length != 0)))
    {
       if (strcmpic(csp->http->gpc, "GET")
          && strcmpic(csp->http->gpc, "HEAD")