aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ndpi_main.c2
-rw-r--r--src/lib/protocols/tls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index de3ffec97..878b7ab87 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -7413,7 +7413,7 @@ static void ndpi_reconcile_protocols(struct ndpi_detection_module_struct *ndpi_s
}
} else if(flow->guessed_protocol_id_by_ip == NDPI_PROTOCOL_TELEGRAM) {
ndpi_int_change_protocol(ndpi_str, flow,
- flow->guessed_protocol_id_by_ip, flow->detected_protocol_stack[1],
+ flow->guessed_protocol_id_by_ip, flow->detected_protocol_stack[0],
NDPI_CONFIDENCE_DPI_PARTIAL);
}
break;
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index 65037cfb8..d03860216 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -2615,7 +2615,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
}
#ifdef DEBUG_TLS
- printf("Client TLS [SUPPORTED_VERSIONS: %s]\n", ja.client.supported_versions_str);
+ printf("Client TLS [SUPPORTED_VERSIONS: %s]\n", version_str);
#endif
if(flow->protos.tls_quic.tls_supported_versions == NULL)