]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] backend: L7 hashing must not be performed on incomplete requests
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Mar 2010 13:54:30 +0000 (14:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Mar 2010 05:32:52 +0000 (06:32 +0100)
commiteaed5a1d4610981a86f21ce03e01ab24a6b256c5
treefc65270cc72ad420d4b43186471476cfd16dd982
parentc5011ca82e4c6bb32364914da865f917aa357755
[BUG] backend: L7 hashing must not be performed on incomplete requests

Isidore Li reported an occasional segfault when using URL hashing, and
kindly provided backtraces and core files to help debugging.

The problem was triggered by reset connections before the URL was sent,
and was due to the same bug which was fixed by commit e45997661bf
(connections were attempted in case of connection abort). While that
bug was already fixed, it appeared that the same segfault could be
triggered when URL hashing is configured in an HTTP backend when the
frontend runs in TCP mode and no URL was seen. It is totally abnormal
to try to hash a null URL, as well as to process any kind of L7 hashing
when a full request was not seen.

This additional fix now ensures that layer7 hashing is not performed on
incomplete requests.
src/backend.c