From: Victor Julien Date: Fri, 17 Mar 2023 16:39:24 +0000 (+0100) Subject: detect/http_header: use list util in tests X-Git-Tag: suricata-7.0.0-rc2~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4278f3df4acf05c4abbdf9ea277a2bb0e7223fc8;p=thirdparty%2Fsuricata.git detect/http_header: use list util in tests Cleanups. --- diff --git a/src/tests/detect-http-header.c b/src/tests/detect-http-header.c index dc3e41ef57..776d891138 100644 --- a/src/tests/detect-http-header.c +++ b/src/tests/detect-http-header.c @@ -1179,7 +1179,7 @@ static int DetectHttpHeaderIsdataatParseTest(void) "isdataat:!4,relative; sid:1;)"); FAIL_IF_NULL(s); - SigMatch *sm = s->init_data->smlists_tail[g_http_header_buffer_id]; + SigMatch *sm = DetectBufferGetLastSigMatch(s, g_http_header_buffer_id); FAIL_IF_NULL(sm); FAIL_IF_NOT(sm->type == DETECT_ISDATAAT);