aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-12-29 19:38:25 +0100
committerLuca Deri <deri@ntop.org>2022-12-29 19:38:25 +0100
commit8f91b8ba72e61eb15a3fdfcddd6339b2fae341be (patch)
treebb20eebc202f69a6fd95146191e718e8249c168f /src/lib/ndpi_utils.c
parent560280e6f082d22e6a9de8e537b7876bacf8d072 (diff)
Implemented EDNS(0) support in DNS dissector
Improved DNS dissection
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 990aef9bd..12313a0f7 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -2355,8 +2355,9 @@ static u_int8_t ndpi_check_hostname_risk_exception(struct ndpi_detection_module_
if(automa->ac_automa) {
AC_TEXT_t ac_input_text;
- AC_REP_t match = {0};
-
+ AC_REP_t match;
+
+ memset(&match, 0, sizeof(match));
ac_input_text.astring = hostname, ac_input_text.length = strlen(hostname);
ac_input_text.option = 0;
@@ -2666,8 +2667,9 @@ u_int8_t is_a_common_alpn(struct ndpi_detection_module_struct *ndpi_str,
if(automa->ac_automa) {
AC_TEXT_t ac_input_text;
- AC_REP_t match = {0};
+ AC_REP_t match;
+ memset(&match, 0, sizeof(match));
ac_input_text.astring = (char*)alpn_to_check, ac_input_text.length = alpn_to_check_len;
ac_input_text.option = 0;