The first_enc_event_pos was not set in one case

The first_enc_event_pos was not set in one case
This commit is contained in:
MassimilianoPinto
2016-10-03 11:41:57 +02:00
parent d9bcf6a775
commit dcc38b44a9
2 changed files with 11 additions and 13 deletions

View File

@ -468,7 +468,7 @@ blr_write_binlog_record(ROUTER_INSTANCE *router, REP_HEADER *hdr, uint32_t size,
* write saved_event_size 4 bytes into encrypted_data + 9
* write encrypted_data
*/
memcpy(&event_size, buf + BINLOG_EVENT_LEN_OFFSET , 4);
memmove(buf + BINLOG_EVENT_LEN_OFFSET, buf, 4);
uint8_t *buf_ptr = buf + 4;