BUG/MINOR: spoe: corrected fragmentation string size

This patch must be backported to 1.9 and 1.8.
This commit is contained in:
Miroslav Zagorac 2019-01-13 16:55:01 +01:00 committed by Christopher Faulet
parent 6afec46ba3
commit 6b3690bc6a

View File

@ -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 (chk->data) chk->area[chk->data++] = ',';
memcpy(chk->area+chk->data, "fragmentation", 13);
chk->data += 5;
chk->data += 13;
}
if (spoe_encode_buffer(chk->area, chk->data, &p, end) == -1)
goto too_big;