From f1b15797f864a417477c120f58c847efec04f1f8 Mon Sep 17 00:00:00 2001 From: Rich J Wareham Date: Sun, 13 Apr 2003 15:42:46 +0000 Subject: 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 --- src/input/input_http.c | 6 ++++-- 1 file 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) { -- cgit v1.2.3