]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: spoe: corrected fragmentation string size
authorMiroslav Zagorac <mzagorac@haproxy.com>
Sun, 13 Jan 2019 15:55:01 +0000 (16:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Jan 2019 12:45:09 +0000 (13:45 +0100)
This patch must be backported to 1.9 and 1.8.

src/flt_spoe.c

index 4cf9237fb690edd5f8fba3d7e70df6058268a2c6..b9b33accbd68ecc8f85cd36f68cffa81f483d6ac 100644 (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;