In verify_request_length(), express 'unread client data available' in a more reasonab...
authorFabian Keil <fk@fabiankeil.de>
Mon, 29 Oct 2012 12:00:50 +0000 (12:00 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 29 Oct 2012 12:00:50 +0000 (12:00 +0000)
jcc.c

diff --git a/jcc.c b/jcc.c
index 7e89495..f29dea1 100644 (file)
--- 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")