From 685d490d07fe5f54cd597ede3f5735fdd4567139 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 26 Feb 2020 20:34:25 +0100 Subject: [PATCH] decode/ieee8021ah: fix possible packet truncation --- src/decode-vlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decode-vlan.c b/src/decode-vlan.c index 49f228a8ab..c41d870f77 100644 --- a/src/decode-vlan.c +++ b/src/decode-vlan.c @@ -45,7 +45,7 @@ #include "host.h" static int DecodeIEEE8021ah(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, - const uint8_t *pkt, uint16_t len); + const uint8_t *pkt, uint32_t len); /** * \internal @@ -164,7 +164,7 @@ typedef struct IEEE8021ahHdr_ { #define IEEE8021AH_HEADER_LEN sizeof(IEEE8021ahHdr) static int DecodeIEEE8021ah(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, - const uint8_t *pkt, uint16_t len) + const uint8_t *pkt, uint32_t len) { StatsIncr(tv, dtv->counter_ieee8021ah);