freebsd-ports/www/junkbuster/files/patch-ak
Edwin Groothuis 90958de059 Resurrect www/junkbuster.
Fix vulnerability as described on
	http://bugs.gentoo.org/show_bug.cgi?id=88537
2005-12-20 23:59:29 +00:00

20 lines
579 B
Text

--- 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;