Fixed issue that prevented alt certificate names to be fully detected when ipAddress and rfc822Name were specified in certificates

This commit is contained in:
Luca Deri
2021-12-07 14:45:42 +01:00
parent cefcc25b13
commit 85b396ca43
4 changed files with 57 additions and 38 deletions
+2 -3
View File
@@ -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;