detect/http_method: use list util in tests; cleanups

pull/8732/head
Victor Julien 2 years ago
parent 4278f3df4a
commit f43b7191ae

@ -2136,7 +2136,7 @@ static int DetectHttpMethodIsdataatParseTest(void)
"isdataat:!4,relative; sid:1;)");
FAIL_IF_NULL(s);
SigMatch *sm = s->init_data->smlists_tail[g_http_method_buffer_id];
SigMatch *sm = DetectBufferGetLastSigMatch(s, g_http_method_buffer_id);
FAIL_IF_NULL(sm);
FAIL_IF_NOT(sm->type == DETECT_ISDATAAT);

Loading…
Cancel
Save