From 415db83d2d0381dba8b3c132fcde539b3f9a3852 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Mon, 24 May 2021 08:02:45 -0400 Subject: [PATCH] general/typo: Correct typo --- src/decode-nsh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/decode-nsh.c b/src/decode-nsh.c index 23f8ddd24f..f71c2431e5 100644 --- a/src/decode-nsh.c +++ b/src/decode-nsh.c @@ -45,9 +45,11 @@ int DecodeNSH(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, const uint8_t *pkt, uint32_t len) { + DEBUG_VALIDATE_BUG_ON(pkt == NULL); + StatsIncr(tv, dtv->counter_nsh); - /* Check mimimum header size */ + /* Check minimum header size */ if (len < sizeof(NshHdr)) { ENGINE_SET_INVALID_EVENT(p, NSH_HEADER_TOO_SMALL); return TM_ECODE_FAILED; -- 2.47.2