]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: contrib/mod_defender: Use network order to encode/decode flags
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 May 2018 12:38:56 +0000 (14:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 May 2018 13:06:18 +0000 (15:06 +0200)
commit48d02d0d21b7ec85de2a6bbeb85757add52e3dfc
tree3df78aa161da701fa69da2a941036ffda35a0d9f
parent6e0d5e7f67ec7366b386906e7ca6a6d70c82fbc8
BUG/MEDIUM: contrib/mod_defender: Use network order to encode/decode flags

A recent fix on the SPOE revealed a mismatch between the SPOE specification and
the mod_defender implementation on the way flags are encoded or decoded. They
must be exchanged using the network bytes order and not the host one.

Be careful though, this patch breaks the compatiblity with HAProxy SPOE before
commit c4dcaff3 ("BUG/MEDIUM: spoe: Flags are not encoded in network order").
contrib/mod_defender/spoa.c