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);