[vlc-commits] http: reject invalid resource location
Rémi Denis-Courmont
git at videolan.org
Sat Oct 15 15:10:32 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 15 16:10:00 2016 +0300| [556573681da9929aafd9b3cf745c4d7d74221d0c] | committer: Rémi Denis-Courmont
http: reject invalid resource location
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=556573681da9929aafd9b3cf745c4d7d74221d0c
---
modules/access/http/resource.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/access/http/resource.c b/modules/access/http/resource.c
index 5b7a95c..ca55b49 100644
--- a/modules/access/http/resource.c
+++ b/modules/access/http/resource.c
@@ -185,7 +185,8 @@ int vlc_http_res_init(struct vlc_http_resource *restrict res,
vlc_url_t url;
bool secure;
- vlc_UrlParse(&url, uri);
+ if (vlc_UrlParse(&url, uri))
+ goto error;
if (url.psz_protocol == NULL || url.psz_host == NULL)
{
errno = EINVAL;
More information about the vlc-commits
mailing list