]> granicus.if.org Git - apache/commit
Fix closing the back end connection in case of error.
authorRainer Jung <rjung@apache.org>
Thu, 16 Aug 2012 17:54:50 +0000 (17:54 +0000)
committerRainer Jung <rjung@apache.org>
Thu, 16 Aug 2012 17:54:50 +0000 (17:54 +0000)
commit4cf751dbb992d73c70687e93ba38335121c4194b
tree4dad08b983d53b69aa8f066dbcc46f1da0744734
parenteacb7eaf05df8b8b4f2f810a460f026d360da55e
Fix closing the back end connection in case of error.
The field "closed" was changed from an int to a bit
field of size one in 2.4.x.
For historical reasons a close instruction was coded
as an increment on the field, which in 2.4.x flips
the field each time. There were mutliple code paths
that would flip it several times for a single error,
so effectively the connection was no longer closed
in these cases.

Especially in the case of an aborted client connection
this lead to a non consumed back end buffer and thus to
response mixup between users.

PR 53727

CVE-2012-3052

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1373955 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/mod_proxy_ajp.c
modules/proxy/mod_proxy_http.c