]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-tables: conversions to strings were broken in dev13
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 10:08:14 +0000 (11:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 10:10:30 +0000 (11:10 +0100)
commitf22180f1b658106c08e83918dec64843c52d3d7e
treed5023d579d79b658c5f28e1d556be6bc3d511c96
parent9cd7d6ccfe614b058af83a9df831d2a5f364fdb8
BUG/MEDIUM: stick-tables: conversions to strings were broken in dev13

Commit 07115412 (MEDIUM: stick-table: allocate the table key...) broke
conversion of samples to strings for stick tables, because if replaced
char buf[BUFSIZE] with char buf[0] and the string converters use sizeof
on this part. Note that sizeof was wrong as well but at least it used
to work.

Fix this by making use of the len parameter instead of sizeof.
src/stick_table.c