From 127d8d0d352206d2fa3191a30a7491b3b1f3da00 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 27 Feb 2023 21:26:41 +0100 Subject: Fixed uninitialized variable --- src/lib/ndpi_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); } -- cgit v1.2.3