diff options
author | Luca Deri <deri@ntop.org> | 2022-12-29 19:38:25 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-12-29 19:38:25 +0100 |
commit | 8f91b8ba72e61eb15a3fdfcddd6339b2fae341be (patch) | |
tree | bb20eebc202f69a6fd95146191e718e8249c168f /src/lib/ndpi_main.c | |
parent | 560280e6f082d22e6a9de8e537b7876bacf8d072 (diff) |
Implemented EDNS(0) support in DNS dissector
Improved DNS dissection
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 95d880dcb..739010025 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6447,8 +6447,10 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct struct ndpi_packet_struct *packet; NDPI_SELECTION_BITMASK_PROTOCOL_SIZE ndpi_selection_packet; u_int32_t num_calls = 0; - ndpi_protocol ret = { 0 }; + ndpi_protocol ret; + memset(&ret, 0, sizeof(ret)); + if(!flow || !ndpi_str) return(ret); |