diff options
author | emanuele-f <black.silver@hotmail.it> | 2018-10-11 12:40:11 +0200 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2018-10-11 12:40:11 +0200 |
commit | 6789d419935534e3b9eafeac8904a28b61e78973 (patch) | |
tree | 59a70c45e4584f3fe14f24cca3fe20f703d58d68 | |
parent | 4b4f4be3a5087eb6f60f1a171547804daccbb749 (diff) |
Fix category match not using client certificate
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |