]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: filters: Fix HTTP parsing when a filter loops on data forwarding
authorChristopher Faulet <christopher.faulet@capflam.org>
Tue, 21 Jun 2016 09:04:34 +0000 (11:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2016 16:53:09 +0000 (18:53 +0200)
commit1eea6d7ba89ad0ed0584478cfc806f3ed7856319
treedb56f148e383eaada7348bdee9c9eb49d5f02964
parent55048a498af12eb6ffffb22ac62fd5df3d395468
BUG/MINOR: filters: Fix HTTP parsing when a filter loops on data forwarding

A filter can choose to loop on data forwarding. When this loop occurs in
HTTP_MSG_ENDING state, http_foward_data callbacks are called twice because of a
goto on the wrong label.

A filter can also choose to loop at the end of a HTTP message, in http_end
callback. Here the goto is good but the label is not at the right place. We must
be sure to upate msg->sov value.
src/proto_http.c