From 59f58808984eff2ef1f81f8610d26a669e30b2dd Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Wed, 17 Feb 2016 08:30:50 +0200 Subject: [PATCH] Added missing OK byte to payload size calculation The OK byte was not taken into notice when the total size of all the payloads in all the packets was calculated. --- server/modules/routing/binlog/blr_master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/binlog/blr_master.c b/server/modules/routing/binlog/blr_master.c index 1fbefd587..31074f764 100644 --- a/server/modules/routing/binlog/blr_master.c +++ b/server/modules/routing/binlog/blr_master.c @@ -2473,7 +2473,7 @@ bool blr_send_event(ROUTER_SLAVE *slave, REP_HEADER *hdr, uint8_t *buf) else { /** Total size of all the payloads in all the packets */ - int64_t len = hdr->event_size; + int64_t len = hdr->event_size + 1; bool first = true; while (rval && len > 0)