summaryrefslogtreecommitdiff
path: root/openvpn/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-12-17 11:11:33 +0100
committerArne Schwabe <arne@rfc2549.org>2012-12-17 11:11:33 +0100
commit5c75fc2eddc3692651c6fbfbd7c346b05e39d9a8 (patch)
tree13df2a3960b72aa8848e26939b1832f323c389b5 /openvpn/src
parent5326ce2bd67d7cb1992911c9c32e952c103a2531 (diff)
Fix proxy support
Diffstat (limited to 'openvpn/src')
-rw-r--r--openvpn/src/openvpn/init.c2
-rw-r--r--openvpn/src/openvpn/socket.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/openvpn/src/openvpn/init.c b/openvpn/src/openvpn/init.c
index fe70dd57..6a1ed02d 100644
--- a/openvpn/src/openvpn/init.c
+++ b/openvpn/src/openvpn/init.c
@@ -137,7 +137,7 @@ management_callback_proxy_cmd (void *arg, const char **p)
}
ho = init_http_proxy_options_once (&ce->http_proxy_options, gc);
ho->server = string_alloc (p[2], gc);
- ho->port = p[3];
+ ho->port = string_alloc (p[3], gc);
ho->retry = true;
ho->auth_retry = (p[4] && streq (p[4], "nct") ? PAR_NCT : PAR_ALL);
ret = true;
diff --git a/openvpn/src/openvpn/socket.c b/openvpn/src/openvpn/socket.c
index 2f929ef6..04a21357 100644
--- a/openvpn/src/openvpn/socket.c
+++ b/openvpn/src/openvpn/socket.c
@@ -1386,7 +1386,7 @@ link_socket_init_phase1 (struct link_socket *sock,
/* are we running in HTTP proxy mode? */
else if (sock->http_proxy)
{
- ASSERT (sock->info.proto == PROTO_TCP_CLIENT && sock->info.af == AF_INET);
+ ASSERT (sock->info.proto == PROTO_TCP_CLIENT);
ASSERT (!sock->inetd);
/* the proxy server */