Commit a4b8f653ee5be9c2292c removed the #ifdefs for ENABLE_HTTP_PROXY and
ENABLE_SOCKS, thus making this "if (false) ; else if (...)" construct
superfluous.  Spotted by David Sommerseth.

Signed-off-by: Gert Doering <g...@greenie.muc.de>
---
 src/openvpn/socket.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c
index f5c740d..afc1e60 100644
--- a/src/openvpn/socket.c
+++ b/src/openvpn/socket.c
@@ -1575,10 +1575,8 @@ link_socket_init_phase1 (struct link_socket *sock,
       sock->sd = accept_from->sd;
     }

-  if (false)
-    ;
   /* are we running in HTTP proxy mode? */
-  else if (sock->http_proxy)
+  if (sock->http_proxy)
     {
       ASSERT (sock->info.proto == PROTO_TCP_CLIENT);
       ASSERT (!sock->inetd);
@@ -1793,9 +1791,7 @@ phase2_tcp_client (struct link_socket *sock, struct 
signal_info *sig_info)
     if (sig_info->signal_received)
       return;

-    if (false)
-      ;
-    else if (sock->http_proxy)
+    if (sock->http_proxy)
       {
        proxy_retry = establish_http_proxy_passthru (sock->http_proxy,
                                                     sock->sd,
-- 
2.0.5


Reply via email to