--- socks4.c.orig Fri Aug 4 08:39:21 2000 +++ socks4.c Thu Apr 29 15:59:20 2004 @@ -28,6 +28,8 @@ #include "jcc.h" +#define DEFAULT_FALLBACK_HTTP_PORT 80 + #define SOCKS_REQUEST_GRANTED 90 #define SOCKS_REQUEST_REJECT 91 #define SOCKS_REQUEST_IDENT_FAILED 92 @@ -60,7 +62,7 @@ unsigned char sbuf[BUFSIZ]; struct socks_op *c = (struct socks_op *)cbuf; struct socks_reply *s = (struct socks_reply *)sbuf; - int web_server_addr; + int web_server_addr = DEFAULT_FALLBACK_HTTP_PORT; int n, csiz, sfd, target_port; int err = 0; char *errstr, *target_host;