summaryrefslogtreecommitdiff
path: root/nDPId.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-09-14 18:30:45 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-09-14 18:38:37 +0200
commitaa89800ff996cec0305b1dde31e2dfb0a89c9bbc (patch)
tree6f97ff63bb928e8eefcbe9473679cc156db08b51 /nDPId.c
parentea0b04d6482a686e967f8372af606115a3b191a9 (diff)
fixed Warnings / build error / cosmetics
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r--nDPId.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nDPId.c b/nDPId.c
index 4d46aa5b3..6d7044759 100644
--- a/nDPId.c
+++ b/nDPId.c
@@ -2562,14 +2562,14 @@ static void ndpi_process_packet(uint8_t * const args,
struct ndpi_ipv6hdr * ip6;
uint64_t time_ms;
- uint16_t ip_offset;
+ uint16_t ip_offset = 0;
uint16_t ip_size;
const uint8_t * l4_ptr = NULL;
uint16_t l4_len = 0;
uint16_t l4_payload_len = 0;
- uint16_t type;
+ uint16_t type = 0;
int thread_index = nDPId_THREAD_DISTRIBUTION_SEED; // generated with `dd if=/dev/random bs=1024 count=1 |& hd'
if (reader_thread == NULL)