aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/ndpiReader.c2
-rw-r--r--src/lib/ndpi_main.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 758d59ec9..f837a5c29 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -3761,8 +3761,6 @@ void hwUnitTest() {
ndpi_hw_free(&hw);
}
-
- exit(0);
}
/* *********************************************** */
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 9f8514848..385b869e5 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4949,7 +4949,7 @@ uint8_t ndpi_connection_tracking(struct ndpi_detection_module_struct *ndpi_str,
dport = ntohs(flow->packet.tcp->dest)),
default_ports = ndpi_str->proto_defaults[ret.master_protocol].tcp_default_ports;
else
- found = NULL, default_ports = NULL;
+ found = NULL, default_ports = NULL, sport = dport = 0;
if(found
&& (found->proto->protoId != NDPI_PROTOCOL_UNKNOWN)