diff options
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); |