X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=gateway.c;h=c84e3b28c7990c978b2b7663edfb0cad5ba404e5;hp=5895b23a9ccf48d159c9da87728d79e2dfa46f68;hb=3c890b0540031fa87cc28514b3e4d0e23124fbcd;hpb=8383a7f4f1db4fa709339e7b324689b5ece8d633 diff --git a/gateway.c b/gateway.c index 5895b23a..c84e3b28 100644 --- a/gateway.c +++ b/gateway.c @@ -1,4 +1,3 @@ -const char gateway_rcs[] = "$Id: gateway.c,v 1.101 2017/06/04 14:42:13 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/gateway.c,v $ @@ -7,7 +6,7 @@ const char gateway_rcs[] = "$Id: gateway.c,v 1.101 2017/06/04 14:42:13 fabiankei * using a "forwarder" (i.e. HTTP proxy and/or a SOCKS4 * or SOCKS5 proxy). * - * Copyright : Written by and Copyright (C) 2001-2016 the + * Copyright : Written by and Copyright (C) 2001-2017 the * Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -79,8 +78,6 @@ const char gateway_rcs[] = "$Id: gateway.c,v 1.101 2017/06/04 14:42:13 fabiankei #endif /* HAVE_POLL */ #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ -const char gateway_h_rcs[] = GATEWAY_H_VERSION; - static jb_socket socks4_connect(const struct forward_spec * fwd, const char * target_host, int target_port, @@ -644,7 +641,7 @@ jb_socket forwarded_connect(const struct forward_spec * fwd, } -#ifdef FUZZ_SOCKS +#ifdef FUZZ /********************************************************************* * * Function : socks_fuzz @@ -819,7 +816,7 @@ static jb_socket socks4_connect(const struct forward_spec * fwd, c->dstip[2] = (unsigned char)((web_server_addr >> 8) & 0xff); c->dstip[3] = (unsigned char)((web_server_addr ) & 0xff); -#ifdef FUZZ_SOCKS +#ifdef FUZZ sfd = 0; #else /* pass the request to the socks server */ @@ -1020,7 +1017,7 @@ static jb_socket socks5_connect(const struct forward_spec *fwd, return(JB_INVALID_SOCKET); } -#ifdef FUZZ_SOCKS +#ifdef FUZZ sfd = 0; if (!err && read_socket(sfd, sbuf, 2) != 2) #else @@ -1111,7 +1108,7 @@ static jb_socket socks5_connect(const struct forward_spec *fwd, cbuf[client_pos++] = (char)((target_port >> 8) & 0xff); cbuf[client_pos++] = (char)((target_port ) & 0xff); -#ifndef FUZZ_SOCKS +#ifndef FUZZ if (write_socket(sfd, cbuf, client_pos)) { errstr = "SOCKS5 negotiation write failed";