CLEANUP: tcpcheck: Remove a useless test on port variable
When a connect rule is evaluated a test is performed on the "port" variable
while it is set to 0 just on the line just above. Just remove this useless
test to make ccpcheck happy.
This patch fixes the issue #1113.
diff --git a/src/tcpcheck.c b/src/tcpcheck.c
index 100c727..82f7b02 100644
--- a/src/tcpcheck.c
+++ b/src/tcpcheck.c
@@ -1045,7 +1045,7 @@
proto = protocol_by_family(conn->dst->ss_family);
port = 0;
- if (!port && connect->port)
+ if (connect->port)
port = connect->port;
if (!port && connect->port_expr) {
struct sample *smp;