summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.c
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-03-17 13:56:53 +0100
committerGert Doering <gert@greenie.muc.de>2014-03-17 19:32:55 +0100
commit087b510365d9aad8f656a8fb0cc07d51511be9d0 (patch)
treef0a26605201c3d4ff91db5a76ef600ff13f78c79 /src/openvpn/options.c
parentd0085293e709c8a722356cfa68ad74c962aef9a2 (diff)
downloadopenvpn-087b510365d9aad8f656a8fb0cc07d51511be9d0.tar.gz
openvpn-087b510365d9aad8f656a8fb0cc07d51511be9d0.tar.xz
openvpn-087b510365d9aad8f656a8fb0cc07d51511be9d0.zip
Introduce safety check for http proxy options
Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1395061013-1802-1-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/8353 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r--src/openvpn/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index ef6170c..34cb642 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -1986,6 +1986,8 @@ options_postprocess_verify_ce (const struct options *options, const struct conne
#ifdef ENABLE_HTTP_PROXY
if ((ce->http_proxy_options) && ce->proto != PROTO_TCP_CLIENT)
msg (M_USAGE, "--http-proxy MUST be used in TCP Client mode (i.e. --proto tcp-client)");
+ if ((ce->http_proxy_options) && !ce->http_proxy_options->server)
+ msg (M_USAGE, "--http-proxy not specified but other http proxy options present");
#endif
#if defined(ENABLE_HTTP_PROXY) && defined(ENABLE_SOCKS)