]> git.kaiwu.me - haproxy.git/commit
[BUG] stick-table: correctly terminate string keys during lookups
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2011 18:31:23 +0000 (19:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Jan 2011 19:12:10 +0000 (20:12 +0100)
commit035da6d1b0c436b85add48bc22120aa814c9cab9
tree106b2e8dd87158e5a7f783cd6356ca639cab63c3
parent48936af9a2c7e3b49d8546e5b01332a10bdefc6b
[BUG] stick-table: correctly terminate string keys during lookups

If a key to be looked up is extracted from data without being padded
and if it matches the beginning of another stored key, it is not
found in subsequent lookups because it does not end with a zero.

This bug was discovered and diagnosed by David Cournapeau.
src/stick_table.c