current gateway.c,1.97,1.98

Fabian Keil <[email protected]> Tue, 25 Oct 2016 10:45:58 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv16803

Modified Files:
	gateway.c 
Log Message:
socks5_connect(): Fail in case of unsupported address types

Previously they would not be detected right away and
Privoxy would fail later on with an error message that
didn't make it obvious that the problem was socks-related.

So far, no such problems have actually been reported.


Index: gateway.c
===================================================================
RCS file: /cvsroot/ijbswa/current/gateway.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -d -r1.97 -r1.98
*** gateway.c	25 Oct 2016 10:43:00 -0000	1.97
--- gateway.c	25 Oct 2016 10:45:56 -0000	1.98
***************
*** 1173,1176 ****
--- 1173,1180 ----
              }
           }
+          else if (sbuf[3] != '\x01')
+          {
+              errstr = "SOCKS5 reply contains unsupported address type";
+          }
           if (errstr == NULL)
           {


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik