1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/www/junkbuster-zlib/files/patch-ak

28 lines
747 B
Plaintext
Raw Normal View History

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;