]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: update compression mismatch test
authorVictor Julien <victor@inliniac.net>
Fri, 26 Feb 2016 13:00:00 +0000 (14:00 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 6 Jun 2016 13:36:19 +0000 (15:36 +0200)
src/detect-engine-hsbd.c

index bf980bd9bb65574a52edbd39abffefca4997fa17..ab22826e622484138563070892cae26589e33611 100644 (file)
@@ -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;
     }