BUG/MEDIUM: contrib/modsecurity: Use network order to encode/decode flags
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 May 2018 12:46:32 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 May 2018 13:06:31 +0000 (15:06 +0200)
commit633f3bffedd7c48b921ad10e5164ee6b0e1d79a2
tree48de6010717d6d4a6e882d93c7f0220aec52f625
parent48d02d0d21b7ec85de2a6bbeb85757add52e3dfc
BUG/MEDIUM: contrib/modsecurity: Use network order to encode/decode flags

A recent fix on the SPOE revealed a mismatch between the SPOE specification and
the modsecurity 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/modsecurity/spoa.c