Fix an assertion in verify_request_length()
authorFabian Keil <fk@fabiankeil.de>
Mon, 29 Oct 2012 12:00:15 +0000 (12:00 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 29 Oct 2012 12:00:15 +0000 (12:00 +0000)
jcc.c

diff --git a/jcc.c b/jcc.c
index 67f4ed4..7e89495 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.408 2012/10/23 10:22:20 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.409 2012/10/29 11:59:34 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -1141,7 +1141,7 @@ static void verify_request_length(struct client_state *csp)
              * it once we're done serving the current request.
              */
             csp->flags |= CSP_FLAG_PIPELINED_REQUEST_WAITING;
-            assert(csp->client_iob->eod > csp->client_iob->cur);
+            assert(csp->client_iob->eod >= csp->client_iob->cur);
             log_error(LOG_LEVEL_CONNECT, "Complete client request followed by "
                "%d bytes of pipelined data received.",
                (int)(csp->client_iob->eod - csp->client_iob->cur));