summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich J Wareham <richwareham@users.sourceforge.net>2003-04-13 15:42:46 +0000
committerRich J Wareham <richwareham@users.sourceforge.net>2003-04-13 15:42:46 +0000
commitf1b15797f864a417477c120f58c847efec04f1f8 (patch)
tree3b886bee6723be7af996ee94762c97ea0d465f86
parent0cd3feb00bda93beac573729e60b986e61073da4 (diff)
downloadxine-lib-f1b15797f864a417477c120f58c847efec04f1f8.tar.gz
xine-lib-f1b15797f864a417477c120f58c847efec04f1f8.tar.bz2
Fix for segfault when using slightly invalid proxy URLs (e.g. http://cache:port vs. http://cache:port/) reported by some users.
CVS patchset: 4597 CVS date: 2003/04/13 15:42:46
-rw-r--r--src/input/input_http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 7a23530fa..9cfc34ecf 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -231,8 +231,10 @@ static int http_plugin_parse_url (char *urlbuf, char **user, char **password,
if (filename != NULL)
*filename = slash + 1;
- } else
- *filename = urlbuf + strlen(urlbuf);
+ } else {
+ if (filename != NULL)
+ *filename = urlbuf + strlen(urlbuf);
+ }
if (portcolon != NULL)
{