From: Victor Julien Date: Fri, 24 May 2024 19:53:59 +0000 (+0200) Subject: defrag: update exception policy counter: ptr can't be NULL X-Git-Tag: suricata-8.0.0-beta1~1223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39876bf566c76cf9c2980c0bc7825c970f3cfb6b;p=thirdparty%2Fsuricata.git defrag: update exception policy counter: ptr can't be NULL --- diff --git a/src/defrag-hash.c b/src/defrag-hash.c index 9fd6619f51..623fd28b7f 100644 --- a/src/defrag-hash.c +++ b/src/defrag-hash.c @@ -455,7 +455,7 @@ static void DefragExceptionPolicyStatsIncr( ThreadVars *tv, DecodeThreadVars *dtv, enum ExceptionPolicy policy) { uint16_t id = dtv->counter_defrag_memcap_eps.eps_id[policy]; - if (likely(tv && id > 0)) { + if (likely(id > 0)) { StatsIncr(tv, id); } }