]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
test: remove one duplicate line
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 26 Dec 2022 15:57:19 +0000 (16:57 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 10 Jan 2023 10:28:18 +0000 (11:28 +0100)
src/detect-engine-port.c

index 736af14242a0f36adfc9be5d0fad4a49bad39fce..9d7170e029176d1a231f247641946672b09e62ae 100644 (file)
@@ -2530,7 +2530,6 @@ static int PortParseTest14Spaces(void)
     const char *str = "              45";
     DetectPort *dp = PortParse(str);
     FAIL_IF_NULL(dp);
-    FAIL_IF_NULL(dp);
     FAIL_IF(dp->port != 45);
     FAIL_IF(dp->port2 != 45);
     DetectPortFree(NULL, dp);
@@ -2543,7 +2542,6 @@ static int PortParseTestMoreThan14Spaces(void)
     const char *str = "                                   45";
     DetectPort *dp = PortParse(str);
     FAIL_IF_NULL(dp);
-    FAIL_IF_NULL(dp);
     FAIL_IF(dp->port != 45);
     FAIL_IF(dp->port2 != 45);
     DetectPortFree(NULL, dp);