mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-09 11:18:04 +00:00
BUG/MINOR: spoe: corrected fragmentation string size
This patch must be backported to 1.9 and 1.8.
This commit is contained in:
parent
6afec46ba3
commit
6b3690bc6a
@ -450,7 +450,7 @@ spoe_prepare_hahello_frame(struct appctx *appctx, char *frame, size_t size)
|
|||||||
if (agent != NULL && (agent->flags & SPOE_FL_RCV_FRAGMENTATION)) {
|
if (agent != NULL && (agent->flags & SPOE_FL_RCV_FRAGMENTATION)) {
|
||||||
if (chk->data) chk->area[chk->data++] = ',';
|
if (chk->data) chk->area[chk->data++] = ',';
|
||||||
memcpy(chk->area+chk->data, "fragmentation", 13);
|
memcpy(chk->area+chk->data, "fragmentation", 13);
|
||||||
chk->data += 5;
|
chk->data += 13;
|
||||||
}
|
}
|
||||||
if (spoe_encode_buffer(chk->area, chk->data, &p, end) == -1)
|
if (spoe_encode_buffer(chk->area, chk->data, &p, end) == -1)
|
||||||
goto too_big;
|
goto too_big;
|
||||||
|
Loading…
Reference in New Issue
Block a user