diff --git a/sql/log_event_server.cc b/sql/log_event_server.cc index 2a22021cc95..f51f5b7deec 100644 --- a/sql/log_event_server.cc +++ b/sql/log_event_server.cc @@ -916,6 +916,10 @@ int Log_event_writer::write_header(uchar *pos, size_t len) int Log_event_writer::write_data(const uchar *pos, size_t len) { DBUG_ENTER("Log_event_writer::write_data"); + + if (!len) + DBUG_RETURN(0); + if (checksum_len) crc= my_checksum(crc, pos, len);