Skip to content

Commit

Permalink
Bug #556 fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Jun 2, 2020
1 parent b763db7 commit e1cec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcpedit/checksum.c
Expand Up @@ -57,7 +57,7 @@ do_checksum(tcpedit_t *tcpedit, uint8_t *data, int proto, int payload_len) {

ipv4 = (ipv4_hdr_t *)data;
if (ipv4->ip_v == 6) {
if (payload_len < sizeof(*ipv6)) {
if (payload_len < (int)sizeof(*ipv6)) {
tcpedit_setwarn(tcpedit, "%s", "Unable to checksum IPv6 packet with insufficient data");
return TCPEDIT_WARN;
}
Expand Down

0 comments on commit e1cec77

Please sign in to comment.