From 39876bf566c76cf9c2980c0bc7825c970f3cfb6b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 24 May 2024 21:53:59 +0200 Subject: [PATCH] defrag: update exception policy counter: ptr can't be NULL --- src/defrag-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.47.2