From 5ccf41739ba67b87a1abf01217407429f944510f Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Tue, 19 Mar 2024 19:51:38 +0100 Subject: STUN: fix fallback when DTL dissection fails --- src/lib/protocols/stun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index 4f7652491..eea2fc8ac 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -540,7 +540,7 @@ static int stun_search_again(struct ndpi_detection_module_struct *ndpi_struct, NDPI_LOG_DBG(ndpi_struct, "Switch to TLS failed. Rollback to old classification\n"); ndpi_set_detected_protocol(ndpi_struct, flow, - old_proto_stack[1], old_proto_stack[0], + old_proto_stack[0], old_proto_stack[1], NDPI_CONFIDENCE_DPI); flow->stun.maybe_dtls = 0; -- cgit v1.2.3