aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputStream_http.c')
-rw-r--r--src/inputStream_http.c14
1 files changed, 7 insertions, 7 deletions
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",