flow engine: minor cleanup.

remotes/origin/master-1.2.x
Victor Julien 13 years ago
parent bfa872b9b7
commit 5401764697

@ -330,14 +330,14 @@ static int FlowPrune(FlowQueue *q, struct timeval *ts, int try_cnt)
SCMutexUnlock(&prev_f->m);
continue;
}
#ifdef DEBUG
/* this should not be possible */
BUG_ON(SC_ATOMIC_GET(f->use_cnt) > 0);
#endif
/* remove from the hash */
if (f->hprev)
if (f->hprev != NULL)
f->hprev->hnext = f->hnext;
if (f->hnext)
if (f->hnext != NULL)
f->hnext->hprev = f->hprev;
if (f->fb->f == f)
f->fb->f = f->hnext;

Loading…
Cancel
Save