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
This commit is contained in:
J. Alexander Treuman 2007-02-06 03:25:29 +00:00
parent 79ef8ba248
commit c5933a164a

View File

@ -102,8 +102,7 @@ void inputStream_initHttp(void)
}
proxyPassword = param->value;
}
} else {
param = getConfigParam(CONF_HTTP_PROXY_PASSWORD);
if (param) {
@ -111,6 +110,7 @@ void inputStream_initHttp(void)
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",
CONF_HTTP_PROXY_PORT, CONF_HTTP_PROXY_HOST, param->line);