From: Victor Julien Date: Fri, 26 Feb 2016 13:00:00 +0000 (+0100) Subject: http: update compression mismatch test X-Git-Tag: suricata-3.1RC1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b313f8ca7b98f8739f5f4f6113070a26a4406f1f;p=thirdparty%2Fsuricata.git http: update compression mismatch test --- diff --git a/src/detect-engine-hsbd.c b/src/detect-engine-hsbd.c index bf980bd9bb..ab22826e62 100644 --- a/src/detect-engine-hsbd.c +++ b/src/detect-engine-hsbd.c @@ -3339,7 +3339,7 @@ static int DetectEngineHttpServerBodyTest22(void) SigMatchSignatures(&th_v, de_ctx, det_ctx, p1); if ((PacketAlertCheck(p1, 1))) { - printf("sid 1 matched but shouldn't have\n"); + printf("sid 1 matched but shouldn't have: "); goto end; } @@ -3353,8 +3353,8 @@ static int DetectEngineHttpServerBodyTest22(void) /* do detect */ SigMatchSignatures(&th_v, de_ctx, det_ctx, p2); - if (PacketAlertCheck(p2, 1)) { - printf("sid 1 matched but shouldn't have"); + if (!(PacketAlertCheck(p2, 1))) { + printf("sid 1 should have matched: "); goto end; }