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.
This commit is contained in:
Markus Makela 2016-02-17 08:30:50 +02:00
parent 63ce9fe6bc
commit 59f5880898

View File

@ -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)