From 862b708a70d1091595714aab0ca79f2b7d993f2d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 10 Jul 2011 19:46:29 +0200 Subject: [PATCH] Fix stream unittest. --- src/stream-tcp-reassemble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index 2e042979fd..f164ebf139 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -7222,8 +7222,8 @@ static int StreamTcpReassembleTest43 (void) { goto end; } #endif - if (ssn.flags & STREAMTCP_FLAG_APPPROTO_DETECTION_COMPLETED) { - printf("app layer detected flag is set, it shouldn't be (8): "); + if (!(ssn.flags & STREAMTCP_FLAG_APPPROTO_DETECTION_COMPLETED)) { + printf("app layer detected flag isn't set, it should be (8): "); goto end; }