From 552e72e35e7370c4727cc89cbd963af1aa40098f Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 15 Sep 2011 16:51:10 +0530 Subject: [PATCH] fix failing unittest --- src/flow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flow.c b/src/flow.c index 9c18f753b0..fd23856a09 100644 --- a/src/flow.c +++ b/src/flow.c @@ -599,12 +599,14 @@ static int FlowPrune(FlowQueue *q, struct timeval *ts, int try_cnt) continue; } +#ifndef UNITTESTS if (FlowForceReassemblyForFlowV2(f) == 1) { Flow *prev_f = f; f = f->lnext; SCMutexUnlock(&prev_f->m); continue; } +#endif /* this should not be possible */ BUG_ON(SC_ATOMIC_GET(f->use_cnt) > 0);