From c5933a164a2b25352becda8b0f103b42bc646348 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Tue, 6 Feb 2007 03:25:29 +0000 Subject: Fix a bug where mpd would complain about a proxy password being specified and not a proxy user even when both are specified. git-svn-id: https://svn.musicpd.org/mpd/trunk@5324 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputStream_http.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/inputStream_http.c b/src/inputStream_http.c index 5df85fb67..46015553e 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -102,14 +102,14 @@ void inputStream_initHttp(void) } proxyPassword = param->value; - } - - param = getConfigParam(CONF_HTTP_PROXY_PASSWORD); + } else { + param = getConfigParam(CONF_HTTP_PROXY_PASSWORD); - if (param) { - ERROR("%s specified but not %s\n", - CONF_HTTP_PROXY_PASSWORD, CONF_HTTP_PROXY_USER); - exit(EXIT_FAILURE); + if (param) { + ERROR("%s specified but not %s\n", + CONF_HTTP_PROXY_PASSWORD, CONF_HTTP_PROXY_USER); + exit(EXIT_FAILURE); + } } } else if ((param = getConfigParam(CONF_HTTP_PROXY_PORT))) { ERROR("%s specified but not %s, line %i\n", -- cgit v1.2.3