From cde5773762210ce21a2400ace30d864897df0d7d Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 21 Feb 2025 19:17:28 +0100 Subject: Move `rtp` info out of `flow->protos` (#2739) Thiw way, the code is ready to handle rtp info from STUN flows too. And, most important, this change works as workaround to fix some crashes reported by oss-fuzz --- example/reader_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 7362321aa..ee31450c0 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1637,7 +1637,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl } if(is_ndpi_proto(flow, NDPI_PROTOCOL_RTP)) - memcpy(&flow->rtp, &flow->ndpi_flow->protos.rtp, sizeof(flow->rtp)); + memcpy(&flow->rtp, &flow->ndpi_flow->rtp, sizeof(flow->rtp)); ndpi_snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), -- cgit v1.2.3