Skip to content

Commit 764ff9b

Browse files
authored
Merge pull request #1206 from headshog/fix-numtrunc-pcap-util
Numeric truncation at `pcap-util.c:374`
2 parents bdfd4f4 + ad2b500 commit 764ff9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcap-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ swap_nflog_header(const struct pcap_pkthdr *hdr, u_char *buf)
344344
nflog_tlv_t *tlv;
345345
u_int caplen = hdr->caplen;
346346
u_int length = hdr->len;
347-
uint16_t size;
347+
u_int size;
348348

349349
if (caplen < (u_int) sizeof(nflog_hdr_t) ||
350350
length < (u_int) sizeof(nflog_hdr_t)) {

0 commit comments

Comments
 (0)