detect: fix insertion in linked list for fast pattern

Make sure we do not add the same list_id twice
by checking at least all the lists with the current priority
pull/4839/head
Philippe Antoine 6 years ago committed by Victor Julien
parent 0ce489bcc9
commit cd26fc139e

@ -97,7 +97,11 @@ void SupportFastPatternForSigMatchList(int list_id, int priority)
return;
}
if (priority <= tmp->priority)
/* We need a strict check to be sure that the current list
* was not already registered
* and other lists with the same priority hide it.
*/
if (priority < tmp->priority)
break;
ip = tmp;

Loading…
Cancel
Save