From: Victor Julien Date: Fri, 17 Mar 2023 13:06:19 +0000 (+0100) Subject: detect/base64_data: remove use of sm_list macro X-Git-Tag: suricata-7.0.0-rc2~422 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3c551b836ee737f70d16b0b42a33a02c747413;p=thirdparty%2Fsuricata.git detect/base64_data: remove use of sm_list macro --- diff --git a/src/detect-base64-data.c b/src/detect-base64-data.c index 4e7aef4459..a533912001 100644 --- a/src/detect-base64-data.c +++ b/src/detect-base64-data.c @@ -98,7 +98,7 @@ static int DetectBase64DataSetupTest01(void) goto end; } - sm = de_ctx->sig_list->sm_lists[DETECT_SM_LIST_PMATCH]; + sm = de_ctx->sig_list->init_data->smlists[DETECT_SM_LIST_PMATCH]; if (sm == NULL) { printf("DETECT_SM_LIST_PMATCH should not be NULL: "); goto end; @@ -108,7 +108,7 @@ static int DetectBase64DataSetupTest01(void) goto end; } - if (de_ctx->sig_list->sm_lists[DETECT_SM_LIST_BASE64_DATA] == NULL) { + if (de_ctx->sig_list->init_data->smlists[DETECT_SM_LIST_BASE64_DATA] == NULL) { printf("DETECT_SM_LIST_BASE64_DATA should not be NULL: "); goto end; }