mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
14fd2072a9
by the port. Also cleanup all warning messages when compiling with -Wall. PR: 17035 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>
28 lines
747 B
Plaintext
28 lines
747 B
Plaintext
diff -ruN /usr/ports/www/ijb/work/ijb20/socks4.c ./socks4.c
|
|
--- /usr/ports/www/ijb/work/ijb20/socks4.c Mon Feb 28 02:35:10 2000
|
|
+++ ./socks4.c Mon Feb 28 02:31:06 2000
|
|
@@ -19,11 +19,13 @@
|
|
#endif
|
|
|
|
#ifdef REGEX
|
|
-#include <gnu_regex.h>
|
|
+#include <gnuregex.h>
|
|
#endif
|
|
|
|
#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
|
|
@@ -56,7 +58,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;
|