summaryrefslogtreecommitdiff
blob: 47ed33eed0d044d549b7aa456ea43d8065810e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff -Nru ijb20.orig/filters.c ijb20/filters.c
--- ijb20.orig/filters.c	2000-03-29 16:05:42.000000000 +0300
+++ ijb20/filters.c	2005-04-12 22:54:06.295702048 +0300
@@ -652,7 +652,7 @@
 ij_untrusted_url(struct http_request *http, struct client_state *csp)
 {
 	int n;
-	char *hostport, *path, *p, *v[9];
+	char *hostport, *path, *referrer, *p, *v[9];
 	char buf[BUFSIZ];
 	struct url_spec **tl, *t;
 
@@ -700,9 +700,9 @@
 	freez(hostport);
 	freez(path    );
 
-	strsav(p, "The referrer in this request was <strong>");
-	strsav(p, referrer);
-	strsav(p, "</strong><br>\n");
+	p = strsav(p, "The referrer in this request was <strong>");
+	p = strsav(p, referrer);
+	p = strsav(p, "</strong><br>\n");
 
 	p = strsav(p, "<h3>The following referrers are trusted</h3>\n");
 
@@ -773,7 +773,7 @@
 
 			sprintf(out_str,
 				"%d requests received, %d filtered "
-				"(%6.2f \%).\0",
+				"(%6.2f %%).",
 				urls_read, urls_rejected+1, perc_rej);
 
 			s = strsav(s,out_str);
diff -Nru ijb20.orig/socks4.c ijb20/socks4.c
--- ijb20.orig/socks4.c	1998-10-30 23:58:48.000000000 +0200
+++ ijb20/socks4.c	2005-04-12 22:44:47.367672024 +0300
@@ -9,6 +9,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <errno.h>
+#include <string.h>
 
 #ifdef _WIN32
 #include <io.h>
@@ -56,7 +57,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 = 0;
 	int n, csiz, sfd, target_port;
 	int err = 0;
 	char *errstr, *target_host;
diff -Nru ijb20.orig/ssplit.c ijb20/ssplit.c
--- ijb20.orig/ssplit.c	1998-10-30 23:58:48.000000000 +0200
+++ ijb20/ssplit.c	2005-04-12 22:44:47.368671872 +0300
@@ -19,6 +19,9 @@
  */
 
 #include <string.h>
+#include <stdlib.h>
+
+extern void *zalloc(int);
 
 int ssplit(char *s, char *c, char *v[], int n, int m, int l)
 {