aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/dns.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-12-07 14:45:42 +0100
committerLuca Deri <deri@ntop.org>2021-12-07 14:45:42 +0100
commit85b396ca43fbd68469600b1bbafa7289276d1a8c (patch)
tree3b476c4fce3767b007ce411f3528d0023bf6585c /src/lib/protocols/dns.c
parentcefcc25b13f997ca84ac3b0ca7554ece178f4cc2 (diff)
Fixed issue that prevented alt certificate names to be fully detected when ipAddress and rfc822Name were specified in certificates
Diffstat (limited to 'src/lib/protocols/dns.c')
-rw-r--r--src/lib/protocols/dns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c
index eb5af5a34..f32143320 100644
--- a/src/lib/protocols/dns.c
+++ b/src/lib/protocols/dns.c
@@ -469,9 +469,8 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st
ndpi_hostname_sni_set(flow, (const u_int8_t *)_hostname, j);
- if (hostname_is_valid == 0) {
- ndpi_set_risk(ndpi_struct, flow, NDPI_INVALID_CHARACTERS);
- }
+ if (hostname_is_valid == 0)
+ ndpi_set_risk(ndpi_struct, flow, NDPI_INVALID_CHARACTERS);
if(j > 0) {
ndpi_protocol_match_result ret_match;