Skip to content

Commit

Permalink
fix CodeQL scan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Jul 12, 2024
1 parent d62a685 commit 214c131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcpedit/edit_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fix_ipv4_checksums(tcpedit_t *tcpedit, struct pcap_pkthdr *pkthdr, ipv4_hdr_t *i
if (pkthdr->caplen == pkthdr->len && (htons(ip_hdr->ip_off) & (IP_MF | IP_OFFMASK)) == 0) {
if (ip_len != (int)(pkthdr->caplen - l2len)) {
tcpedit_setwarn(tcpedit,
"skipping packet " COUNTER_SPEC " because caplen %u minus L2 length %u does not equal IPv4 header length %u. Consider option '--fixhdrlen'.",
"skipping packet " COUNTER_SPEC " because caplen %u minus L2 length %zu does not equal IPv4 header length %u. Consider option '--fixhdrlen'.",
tcpedit->runtime.packetnum,
pkthdr->caplen,
l2len,
Expand Down

0 comments on commit 214c131

Please sign in to comment.