]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1: Properly reset h1m when parsing is restarted
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2019 14:05:31 +0000 (16:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Sep 2019 08:30:11 +0000 (10:30 +0200)
commit84f06533e169ce34afad9e48fa6d3b0f614d4ad0
treeb23e8fa8f931a836665e4f849dd84da61cf38465
parent3499f62b59eb9ce0adeb17e6ceffc57a43893ae9
BUG/MINOR: h1: Properly reset h1m when parsing is restarted

Otherwise some processing may be performed twice. For instance, if the header
"Content-Length" is parsed on the first pass, when the parsing is restarted, we
skip it because we think another header with the same value was already seen. In
fact, it is currently the only existing bug that can be encountered. But it is
safer to reset all the h1m on restart to avoid any future bugs.

This patch must be backported to 2.0 and 1.9
src/h1.c