From: Victor Julien Date: Fri, 17 Mar 2023 13:22:40 +0000 (+0100) Subject: detect/byte_math: reduce use of sm_list macro X-Git-Tag: suricata-7.0.0-rc2~416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1cf8bbdae88f58dfafd544f7c7785001417626;p=thirdparty%2Fsuricata.git detect/byte_math: reduce use of sm_list macro --- diff --git a/src/detect-bytemath.c b/src/detect-bytemath.c index 6d2a65aaef..58b157289f 100644 --- a/src/detect-bytemath.c +++ b/src/detect-bytemath.c @@ -948,9 +948,9 @@ static int DetectByteMathContext01(void) FAIL_IF(de_ctx->sig_list == NULL); - FAIL_IF(s->sm_lists_tail[DETECT_SM_LIST_PMATCH] == NULL); + FAIL_IF(s->init_data->smlists_tail[DETECT_SM_LIST_PMATCH] == NULL); - sm = s->sm_lists[DETECT_SM_LIST_PMATCH]; + sm = s->init_data->smlists[DETECT_SM_LIST_PMATCH]; FAIL_IF(sm->type != DETECT_CONTENT); cd = (DetectContentData *)sm->ctx; FAIL_IF(cd->flags & DETECT_CONTENT_WITHIN);