I think this bit here where it checks length < 0 && length > maxpost
should almost certainly be || rather than &&.

        /*
         * Check for end of headers.
         */

        if (e == s) {
            reqPtr->coff = reqPtr->roff;
            s = Ns_SetIGet(reqPtr->headers, "content-length");
            if (s != NULL) {
                reqPtr->length = atoi(s);
                if (reqPtr->length < 0
                    && reqPtr->length > sockPtr->drvPtr->servPtr->limits.maxpost) {
                    return SOCK_ERROR;
                }
            }
          } else { ...

--
Jeff Davis http://xarg.net mailto:[EMAIL PROTECTED]


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to