aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-02-27 21:26:41 +0100
committerLuca Deri <deri@ntop.org>2023-02-27 21:26:41 +0100
commit127d8d0d352206d2fa3191a30a7491b3b1f3da00 (patch)
tree40bb46449ee31d1c1ff9d0c5b954d07591e3e7a9 /src/lib/ndpi_main.c
parent21c7550157caa9f3dfca8960950cb025fb6645cb (diff)
Fixed uninitialized variable
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 23c11056a..13df39171 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -7511,6 +7511,7 @@ void ndpi_set_detected_protocol(struct ndpi_detection_module_struct *ndpi_str, s
ndpi_protocol ret;
ndpi_int_change_protocol(ndpi_str, flow, upper_detected_protocol, lower_detected_protocol, confidence);
+ ret.master_protocol = flow->detected_protocol_stack[1], ret.app_protocol = flow->detected_protocol_stack[0];
ndpi_reconcile_protocols(ndpi_str, flow, &ret);
}