Fix TAG removal in certain conditions.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent f4aad76bb4
commit e866aa3e15

@ -703,6 +703,7 @@ static void TagTimeoutRemove(DetectTagHostCtx *tag_ctx, struct timeval *tv)
while (tmp != NULL) {
if ((tv->tv_sec - tmp->last_ts.tv_sec) <= TAG_MAX_LAST_TIME_SEEN) {
prev = tmp;
tmp = tmp->next;
continue;
}
@ -743,6 +744,7 @@ static void TagTimeoutRemove(DetectTagHostCtx *tag_ctx, struct timeval *tv)
while (tmp != NULL) {
if ((tv->tv_sec - tmp->last_ts.tv_sec) <= TAG_MAX_LAST_TIME_SEEN) {
prev = tmp;
tmp = tmp->next;
continue;
}

Loading…
Cancel
Save