From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 23 Oct 2011 11:21:28 +0000 (+0000)
Subject: Streamline socks5_connect() slightly
X-Git-Tag: v_3_0_18~77
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/user-manual/static/coding.html?a=commitdiff_plain;h=ebfbedec7295cb95ceda12f0fa203d4f1d314fdd;p=privoxy.git

Streamline socks5_connect() slightly
---

diff --git a/gateway.c b/gateway.c
index f28823be..b65991ac 100644
--- a/gateway.c
+++ b/gateway.c
@@ -1,4 +1,4 @@
-const char gateway_rcs[] = "$Id: gateway.c,v 1.80 2011/10/23 11:20:51 fabiankeil Exp $";
+const char gateway_rcs[] = "$Id: gateway.c,v 1.81 2011/10/23 11:21:09 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/gateway.c,v $
@@ -1093,10 +1093,8 @@ static jb_socket socks5_connect(const struct forward_spec *fwd,
    if (server_size != sizeof(sbuf))
    {
       errstr = "SOCKS5 negotiation read failed";
-      err = 1;
    }
-
-   if (!err)
+   else
    {
       if (sbuf[0] != '\x05')
       {