Fixes only the last mask processed being updated (whether or not it
actually matched), instead updating all masks that do match (reported or
not).
We also no longer stop processing when handling an exempt mask since
otherwise we'd update last_matched for all *previous* matching masks,
which would be quite counterintuitive.
if (! regex_match(m->re, nuh))
continue;
+ m->last_match = CURRTIME;
+
switch (m->type)
{
case mask_exempt:
case mask_unknown:
break;
}
-
- if (exempt)
- break;
}
- m->last_match = CURRTIME;
-
if (exempt == 1)
return;