From 5f6f3bd69d858db070938bc838f844fe73f5ab3e Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 19 Sep 2013 18:27:43 +0200 Subject: Fix SOCKS5 support --- openvpn/src/openvpn/socket.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openvpn/src') diff --git a/openvpn/src/openvpn/socket.c b/openvpn/src/openvpn/socket.c index f6af489e..0898babe 100644 --- a/openvpn/src/openvpn/socket.c +++ b/openvpn/src/openvpn/socket.c @@ -1434,7 +1434,6 @@ link_socket_init_phase1 (struct link_socket *sock, /* or in Socks proxy mode? */ else if (sock->socks_proxy) { - ASSERT (sock->info.af == AF_INET); ASSERT (!sock->inetd); /* the proxy server */ @@ -1699,7 +1698,11 @@ phase2_socks_client (struct link_socket *sock, struct signal_info *sig_info) addr_zero_host(&sock->info.lsa->actual.dest); if (sock->info.lsa->remote_list) + { freeaddrinfo(sock->info.lsa->remote_list); + sock->info.lsa->current_remote = NULL; + sock->info.lsa->remote_list = NULL; + } resolve_remote (sock, 1, NULL, &sig_info->signal_received); -- cgit v1.2.3