]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ebtree: ebmb_insert() must not call cmp_bits on full-length matches
authorWilly Tarreau <w@1wt.eu>
Sat, 9 Jun 2012 13:43:36 +0000 (15:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 9 Jun 2012 16:48:22 +0000 (18:48 +0200)
commita4a1cd107223ff275b83d956430b64fdb9594f4c
treea727d54fce9444f02d2646b465d21dbd3c8f4c56
parentde5dc0509c345bccef3bcd90cda7a6945847a08b
BUG/MEDIUM: ebtree: ebmb_insert() must not call cmp_bits on full-length matches

Otherwise we end up comparing the byte past the end, resulting
in duplicate values still being inserted into the tree even if
undesired.

This generally has low impact, though it can sometimes cause one new entry
to be added next to an existing one for stick tables, preventing the results
from being merged.

(cherry picked from commit 12e54ac493a91bb02064568f410592c2700d3933)
ebtree/ebimtree.h
ebtree/ebmbtree.h