diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/network.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/network.c b/stream/network.c index fc38effde4..cbf643a6f2 100644 --- a/stream/network.c +++ b/stream/network.c @@ -206,6 +206,10 @@ http_send_request( URL_t *url, off_t pos ) { if( !strcasecmp(url->protocol, "http_proxy") ) { proxy = 1; server_url = url_new( (url->file)+1 ); + if (!server_url) { + mp_msg(MSGT_NETWORK, MSGL_ERR, "Invalid URL '%s' to proxify\n", url->file+1); + goto err_out; + } http_set_uri( http_hdr, server_url->url ); } else { server_url = url; |