aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-11-23 11:39:23 +0100
committerLuca Deri <deri@ntop.org>2019-11-23 11:39:23 +0100
commit537c11a98501e2df868e272a53a793a3c923b008 (patch)
treef68437e0ea98b33b05d3a291755da5160e9a2a73 /src
parentbdc0719e7633904749d97089844019b0bf589963 (diff)
Fixes for uninitialized variables
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index fbcf6f111..7a77f8fbf 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4205,7 +4205,8 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st
/* TODO: add the remaining stage_XXXX protocols */
if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) {
- u_int16_t guessed_protocol_id, guessed_host_protocol_id;
+ u_int16_t guessed_protocol_id = NDPI_PROTOCOL_UNKNOWN,
+ guessed_host_protocol_id = NDPI_PROTOCOL_UNKNOWN;
if(flow->guessed_protocol_id == NDPI_PROTOCOL_STUN)
goto check_stun_export;