refix failing unittest

remotes/origin/master-1.1.x
Anoop Saldanha 14 years ago committed by Victor Julien
parent 552e72e35e
commit 16884a0dea

@ -599,13 +599,15 @@ static int FlowPrune(FlowQueue *q, struct timeval *ts, int try_cnt)
continue;
}
#ifndef UNITTESTS
#ifdef UNITTESTS
if (run_mode != RUNMODE_UNITTEST) {
if (FlowForceReassemblyForFlowV2(f) == 1) {
Flow *prev_f = f;
f = f->lnext;
SCMutexUnlock(&prev_f->m);
continue;
}
}
#endif
/* this should not be possible */

Loading…
Cancel
Save