From 806f47337d591b82ba2db211629b2b25429cc21e Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 24 Sep 2024 10:55:48 +0200 Subject: Added Sonos protocol detection --- src/lib/protocols/tls.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/protocols/tls.c') diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 82caf0584..b413cd262 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -653,8 +653,7 @@ void processCertificateElements(struct ndpi_detection_module_struct *ndpi_struct if(matched_name == 0) { #if DEBUG_TLS printf("[TLS] Trying to match '%s' with '%s'\n", - flow->host_server_name, - dNSName); + flow->host_server_name, dNSName); #endif if(dNSName[0] == '*') { @@ -667,8 +666,7 @@ void processCertificateElements(struct ndpi_detection_module_struct *ndpi_struct matched_name = 1; } } - } - else if(strcmp(flow->host_server_name, dNSName) == 0) { + } else if(strcmp(flow->host_server_name, dNSName) == 0) { matched_name = 1; } } -- cgit v1.2.3