From fe3fed0b143ef6bf2d9b65ce05d55aba4224429e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 30 Jan 2016 02:17:51 +0100 Subject: Update demuxers and protocols for protocol whitelist support Reviewed-by: Andreas Cadhalpun Signed-off-by: Michael Niedermayer --- libavformat/gopher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/gopher.c') diff --git a/libavformat/gopher.c b/libavformat/gopher.c index a5340d276c..835ad7f9c1 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -93,8 +93,8 @@ static int gopher_open(URLContext *h, const char *uri, int flags) ff_url_join(buf, sizeof(buf), "tcp", NULL, hostname, port, NULL); s->hd = NULL; - err = ffurl_open(&s->hd, buf, AVIO_FLAG_READ_WRITE, - &h->interrupt_callback, NULL); + err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, + &h->interrupt_callback, NULL, h->protocol_whitelist); if (err < 0) goto fail; -- cgit v1.2.3