From: Miroslav Zagorac Date: Sun, 13 Jan 2019 15:55:01 +0000 (+0100) Subject: BUG/MINOR: spoe: corrected fragmentation string size X-Git-Tag: v2.0-dev1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b3690bc6ae44c60677d55c6a82b459f76b91e30;p=thirdparty%2Fhaproxy.git BUG/MINOR: spoe: corrected fragmentation string size This patch must be backported to 1.9 and 1.8. --- diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 4cf9237fb6..b9b33accbd 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -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;