BUG/MEDIUM: proto_htx: Fix data size update if end of the cookie is removed
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Feb 2019 13:29:57 +0000 (14:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 13 Feb 2019 08:56:54 +0000 (09:56 +0100)
commit6cdaf2ad9a73f3b319cac409c7116ab090342049
tree4fc853d2ef16a89f275fe6030f00800f685ae548
parent8861e1c082bd23dc3d7a45c7abfb01b1ecde4918
BUG/MEDIUM: proto_htx: Fix data size update if end of the cookie is removed

When client-side or server-side cookies are parsed, if the end of the cookie
line is removed, the HTX message must be updated. The length of the HTX block is
decreased and the data size of the HTX message is modified accordingly. The
update of the HTX block was ok but the update of the HTX message was wrong,
leading to undefined behaviours during the data forwarding. One of possible
effect was a freeze of the connection and no data forward.

This patch must be backported in 1.9.
src/proto_htx.c