]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: spoa: Update pointer on the end of the frame when a reply is encoded
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Sep 2017 09:49:23 +0000 (11:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 10:36:12 +0000 (11:36 +0100)
commit94bb4c6a488f5f872d7ceacc1ce685aa02fd6598
tree5738144f0802ec760b537c7ef6c15b3a4a437b2e
parente1405e5f802123eec8270ab87d6e9637c40dfd6a
BUG/MINOR: spoa: Update pointer on the end of the frame when a reply is encoded

The same buffer is used for a request and its response. So we need to be sure
to correctly reset info when the response is encoded. And here there was a
bug. The pointer on the end of the frame was not updated.  So it was not
possible to encode a response bigger than the corresponding request.
contrib/spoa_example/spoa.c