decode/ieee8021ah: fix possible packet truncation

pull/4802/head
Victor Julien 6 years ago
parent 5404dc7f6d
commit 685d490d07

@ -45,7 +45,7 @@
#include "host.h" #include "host.h"
static int DecodeIEEE8021ah(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, static int DecodeIEEE8021ah(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p,
const uint8_t *pkt, uint16_t len); const uint8_t *pkt, uint32_t len);
/** /**
* \internal * \internal
@ -164,7 +164,7 @@ typedef struct IEEE8021ahHdr_ {
#define IEEE8021AH_HEADER_LEN sizeof(IEEE8021ahHdr) #define IEEE8021AH_HEADER_LEN sizeof(IEEE8021ahHdr)
static int DecodeIEEE8021ah(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, 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); StatsIncr(tv, dtv->counter_ieee8021ah);

Loading…
Cancel
Save