From e92ab40d398ee4cc89a570713d788bd596a36bca Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 25 Jan 2011 09:01:33 +0100 Subject: [PATCH] Fix compilation for non-DEBUG case. --- src/stream-tcp-reassemble.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index 73443680f6..4abb1b019f 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -1989,12 +1989,16 @@ static int StreamTcpReassembleInlineAppLayer (TcpReassemblyThreadCtx *ra_ctx, /* flag reassembly as started, so the to_client part can start */ ssn->flags |= STREAMTCP_FLAG_TOSERVER_REASSEMBLY_STARTED; +#ifdef DEBUG dbg_app_layer_gap++; +#endif break; } else { SCLogDebug("possible GAP, but waiting to see if out of order " "packets might solve that"); +#ifdef DEBUG dbg_app_layer_gap_candidate++; +#endif break; } } @@ -2770,12 +2774,16 @@ static int StreamTcpReassembleAppLayer (TcpReassemblyThreadCtx *ra_ctx, /* flag reassembly as started, so the to_client part can start */ ssn->flags |= STREAMTCP_FLAG_TOSERVER_REASSEMBLY_STARTED; +#ifdef DEBUG dbg_app_layer_gap++; +#endif break; } else { SCLogDebug("possible GAP, but waiting to see if out of order " "packets might solve that"); +#ifdef DEBUG dbg_app_layer_gap_candidate++; +#endif break; } }