aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2023-07-17 23:52:46 -0700
committerGitHub <noreply@github.com>2023-07-17 23:52:46 -0700
commit764ff9bbfed654cf37ec9d14b0a17146cdb39305 (patch)
tree1b96aba4ebc017850515f91f8dc75d142b0c830b
parentbdfd4f4da1a2b4a21ca8fab718831259edb82d75 (diff)
parentad2b500d4c7ab1398a14cd728e1379bcad0954a6 (diff)
Merge pull request #1206 from headshog/fix-numtrunc-pcap-util
Numeric truncation at `pcap-util.c:374`
-rw-r--r--pcap-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-util.c b/pcap-util.c
index 1579a84d..962264ec 100644
--- a/pcap-util.c
+++ b/pcap-util.c
@@ -344,7 +344,7 @@ swap_nflog_header(const struct pcap_pkthdr *hdr, u_char *buf)
nflog_tlv_t *tlv;
u_int caplen = hdr->caplen;
u_int length = hdr->len;
- uint16_t size;
+ u_int size;
if (caplen < (u_int) sizeof(nflog_hdr_t) ||
length < (u_int) sizeof(nflog_hdr_t)) {