]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/base64_data: remove use of sm_list macro
authorVictor Julien <vjulien@oisf.net>
Fri, 17 Mar 2023 13:06:19 +0000 (14:06 +0100)
committerVictor Julien <vjulien@oisf.net>
Sat, 15 Apr 2023 05:02:48 +0000 (07:02 +0200)
src/detect-base64-data.c

index 4e7aef445947fd3aa5bc9effabb0ce08f20777f4..a5339120017b8f100e44af5ecba59bab0564ef73 100644 (file)
@@ -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;
     }