]> git.pld-linux.org Git - packages/anubis.git/blame - anubis-boundary.patch
- automake epoch
[packages/anubis.git] / anubis-boundary.patch
CommitLineData
504e824d
JB
1diff -urN anubis-3.6.2/src/net.c anubis-3.6.2-fix/src/net.c
2--- anubis-3.6.2/src/net.c Wed Dec 11 15:37:56 2002
3+++ anubis-3.6.2-fix/src/net.c Thu Jun 5 23:38:49 2003
4@@ -122,6 +122,7 @@
5 int sd = 0;
6 unsigned long inaddr;
7 struct sockaddr_in addr;
8+ int true = 1;
9
10 memset(&addr, 0, sizeof(addr));
11 addr.sin_family = AF_INET;
12@@ -153,6 +154,8 @@
13 else
14 addr.sin_addr.s_addr = htonl(INADDR_ANY);
15
16+ setsockopt (sd, SOL_SOCKET, SO_REUSEADDR, &true, sizeof(true));
17+
18 if (bind(sd, (struct sockaddr *)&addr, sizeof(addr)))
19 anubis_error(HARD, _("bind() failed: %s."), strerror(errno));
20 info(VERBOSE, _("GNU Anubis bound to %s:%u"), inet_ntoa(addr.sin_addr),
21diff -urN anubis-3.6.2/src/tunnel.c anubis-3.6.2-fix/src/tunnel.c
22--- anubis-3.6.2/src/tunnel.c Sun Dec 8 19:04:51 2002
23+++ anubis-3.6.2-fix/src/tunnel.c Tue Mar 11 11:04:10 2003
24@@ -554,9 +554,11 @@
25 ptr1 = strstr(boundary_buf, "boundary=");
26 if (ptr1 == 0) {
27 plist = plist->next;
28- safe_strcpy(boundary_buf, plist->line);
29- change_to_lower(boundary_buf);
30- ptr1 = strstr(boundary_buf, "boundary=");
31+ if (plist) {
32+ safe_strcpy(boundary_buf, plist->line);
33+ change_to_lower(boundary_buf);
34+ ptr1 = strstr(boundary_buf, "boundary=");
35+ }
36 }
37
38 if (ptr1) {
This page took 0.18216 seconds and 4 git commands to generate.