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.
This commit is contained in:
Christopher Faulet 2017-09-26 11:49:23 +02:00 committed by Willy Tarreau
parent e1405e5f80
commit 94bb4c6a48
1 changed files with 2 additions and 1 deletions

View File

@ -1358,7 +1358,8 @@ process_frame_cb(evutil_socket_t fd, short events, void *arg)
frame->flags = 0;
ret = prepare_agentack(frame);
p = frame->buf + ret;
p = frame->buf + ret;
end = frame->buf+max_frame_size;
if (frame->ip_score != -1) {
DEBUG(frame->worker, "Add action : set variable ip_scode=%u",