diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2021-11-03 15:40:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 15:40:07 +0100 |
commit | a8a3c6f7c2a479104efdc48db21c8d709b4fc5e5 (patch) | |
tree | 0675b63f799c9f2ff2d90703028765d2f1a73e33 /src/lib/ndpi_main.c | |
parent | 55880e4ae4cb651f54a9531ba9732977d9dd517f (diff) |
Fix use-of-uninitialized-value (#1366)
Close #1346
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 7baa96be2..5573413ea 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5376,7 +5376,7 @@ static int ndpi_do_guess(struct ndpi_detection_module_struct *ndpi_str, struct n if(flow->guessed_host_protocol_id >= NDPI_MAX_SUPPORTED_PROTOCOLS) { //u_int32_t num_calls; - NDPI_SELECTION_BITMASK_PROTOCOL_SIZE ndpi_selection_packet; + NDPI_SELECTION_BITMASK_PROTOCOL_SIZE ndpi_selection_packet = {0}; /* This is a custom protocol and it has priority over everything else */ ret->master_protocol = flow->guessed_protocol_id, ret->app_protocol = flow->guessed_host_protocol_id; |