]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: ensure that msg->err_pos is always relative to buf->p
authorWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 07:44:41 +0000 (09:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 19:28:15 +0000 (21:28 +0200)
commit69d8c5d99e4ffe57e7014ec6609584519f83f76b
tree8b3290596e1f7b44df8b91ea6eda93e66c972123
parentd6c2e8c9162452e5f192bdd92c7f241499c7117e
BUG/MINOR: http: ensure that msg->err_pos is always relative to buf->p

Since the beginning of buffer&msg changes, the error position (err_pos)
had not completely been converted and some offsets still appear wrong.
Now we ensure that everywhere msg->err_pos is relative to buf->p and
we always report buf->i bytes starting at buf->p in all error captures,
which ensures that err_pos is there.

This is not exactly a bug and is specific to latest changes so no backport
is needed.
src/proto_http.c