]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix the case where we generate both a 401 and 413 and we go bonkers.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 31 May 2002 07:37:19 +0000 (07:37 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 31 May 2002 07:37:19 +0000 (07:37 +0000)
commit018676056281f4eb105b28f594591c4b044a4041
treef94d306ee7c47a64bfc79306c5af1161513d1768
parent2f171d8fd456c3baec276f6f47555453d7746677
Fix the case where we generate both a 401 and 413 and we go bonkers.

- If an error would drop the connection, we do not return the top-level
  error anymore as we will assume this new one takes precedence over the
  original error.  This also ensures that we will not read the input
  body (which is the point of returning these special error messages in
  the first place).
- The ap_discard_request_body return value in ap_die() must be checked
  to make sure we don't encounter this recursive case and print two errors.

Kudos to Jeff Trawick for his sample input which pointed this out.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95426 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_request.c