diff options
| author | Rich J Wareham <richwareham@users.sourceforge.net> | 2003-04-13 15:42:46 +0000 |
|---|---|---|
| committer | Rich J Wareham <richwareham@users.sourceforge.net> | 2003-04-13 15:42:46 +0000 |
| commit | f1b15797f864a417477c120f58c847efec04f1f8 (patch) | |
| tree | 3b886bee6723be7af996ee94762c97ea0d465f86 | |
| parent | 0cd3feb00bda93beac573729e60b986e61073da4 (diff) | |
| download | xine-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.c | 6 |
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) { |
