BUG/MINOR: acl: req_ssl_sni would randomly fail if a session ID is present
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Apr 2012 07:24:11 +0000 (09:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Apr 2012 07:24:11 +0000 (09:24 +0200)
commitd017f113c0db0f99227a96e825d244c6e1e322ac
treefff52539f54bce22e2a73465a3d296ce3c1a1597
parentdc4d9036406611211816e2761beeaece697f650f
BUG/MINOR: acl: req_ssl_sni would randomly fail if a session ID is present

The wrong byte was checked for the session_id length in the payload. This
used to work when the session ID was absent because zero was found there,
but when a session ID is present, there is 1/256 chance that the inspected
data contains 0x20 (the actual session ID length), so it fails.

Thanks to Emmanuel Bézagu for reporting this bug.

This bug does not need backporting, it is 1.5 specific.
src/acl.c