From 6789d419935534e3b9eafeac8904a28b61e78973 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Thu, 11 Oct 2018 12:40:11 +0200 Subject: Fix category match not using client certificate --- src/lib/ndpi_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 7b9205081..e0e18fc62 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4265,9 +4265,9 @@ void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struc } } - if(flow->protos.stun_ssl.ssl.server_certificate[0] != '\0') { + if(flow->protos.stun_ssl.ssl.client_certificate[0] != '\0') { unsigned long id; - int rc = ndpi_match_custom_category(ndpi_struct, (char *)flow->protos.stun_ssl.ssl.server_certificate, &id); + int rc = ndpi_match_custom_category(ndpi_struct, (char *)flow->protos.stun_ssl.ssl.client_certificate, &id); if(rc == 0) { flow->category = ret->category = (ndpi_protocol_category_t)id; -- cgit v1.2.3