mirror of https://github.com/OISF/suricata
detect: use PrefilterIsPrefilterableById where possible
cocci script used:
@@
identifier s, sm, DETECT_TYPE;
@@
- for (sm = s->init_data->smlists[DETECT_SM_LIST_MATCH] ; sm != NULL; sm = sm->next) {
- switch (sm->type) {
- case DETECT_TYPE:
- return true;
- }
- }
- return false;
+ return PrefilterIsPrefilterableById(s, DETECT_TYPE);
followed by some basic cmdline manipulations to get rid of extras left.
pull/14481/head
parent
726139a539
commit
a53ba4af94
Loading…
Reference in New Issue