diff options
author | Luca Deri <deri@ntop.org> | 2021-12-07 14:45:42 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-12-07 14:45:42 +0100 |
commit | 85b396ca43fbd68469600b1bbafa7289276d1a8c (patch) | |
tree | 3b476c4fce3767b007ce411f3528d0023bf6585c /src/lib/protocols/dns.c | |
parent | cefcc25b13f997ca84ac3b0ca7554ece178f4cc2 (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.c | 5 |
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; |