From 792a9979ebc678de9b67745027e2c1bfb63e4845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 10 May 2024 04:07:40 +0200 Subject: [PATCH] avformat/rtpproto: free ip filters on open error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by OSS-Fuzz. Signed-off-by: Kacper Michajłow Signed-off-by: Michael Niedermayer --- libavformat/rtpproto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index b1cdf061f0..15d0050936 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -379,6 +379,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags) return 0; fail: + ff_ip_reset_filters(&s->filters); ffurl_closep(&s->rtp_hd); ffurl_closep(&s->rtcp_hd); ffurl_closep(&s->fec_hd);