Skip to content

Commit

Permalink
Removed unnecessary RPL_CHECK_POS checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Jun 9, 2023
1 parent 238cec4 commit ec38523
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libmariadb/mariadb_rpl.c
Expand Up @@ -1360,7 +1360,6 @@ MARIADB_RPL_EVENT * STDCALL mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVEN
ev+= len;

len= ev_end - ev - (rpl->use_checksum ? 4 : 0);
RPL_CHECK_POS(ev, ev_end, len);

if (len > 0) /* optional metadata */
{
Expand Down Expand Up @@ -1482,7 +1481,6 @@ MARIADB_RPL_EVENT * STDCALL mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVEN
rpl_event->checksum= (uint32_t) crc32(crc, checksum_start, (uint32_t)(ev_end - checksum_start));
}
}
RPL_CHECK_POS(ev, ev_end, len);
rpl_set_string_and_len(&rpl_event->event.rotate.filename, ev, len);
if (ma_set_rpl_filename(rpl, ev, len))
goto mem_error;
Expand Down

0 comments on commit ec38523

Please sign in to comment.