]> git.pld-linux.org Git - packages/anubis.git/commitdiff
- official security-related patch (crash on broken MIME)
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 25 Oct 2003 00:12:33 +0000 (00:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anubis-boundary.patch -> 1.1

anubis-boundary.patch [new file with mode: 0644]

diff --git a/anubis-boundary.patch b/anubis-boundary.patch
new file mode 100644 (file)
index 0000000..42057fc
--- /dev/null
@@ -0,0 +1,38 @@
+diff -urN anubis-3.6.2/src/net.c anubis-3.6.2-fix/src/net.c
+--- anubis-3.6.2/src/net.c     Wed Dec 11 15:37:56 2002
++++ anubis-3.6.2-fix/src/net.c Thu Jun  5 23:38:49 2003
+@@ -122,6 +122,7 @@
+       int sd = 0;
+       unsigned long inaddr;
+       struct sockaddr_in addr;
++      int true = 1;
+       memset(&addr, 0, sizeof(addr));
+       addr.sin_family = AF_INET;
+@@ -153,6 +154,8 @@
+       else
+               addr.sin_addr.s_addr = htonl(INADDR_ANY);
++      setsockopt (sd, SOL_SOCKET, SO_REUSEADDR, &true, sizeof(true));
++
+       if (bind(sd, (struct sockaddr *)&addr, sizeof(addr)))
+               anubis_error(HARD, _("bind() failed: %s."), strerror(errno));
+       info(VERBOSE, _("GNU Anubis bound to %s:%u"), inet_ntoa(addr.sin_addr),
+diff -urN anubis-3.6.2/src/tunnel.c anubis-3.6.2-fix/src/tunnel.c
+--- anubis-3.6.2/src/tunnel.c  Sun Dec  8 19:04:51 2002
++++ anubis-3.6.2-fix/src/tunnel.c      Tue Mar 11 11:04:10 2003
+@@ -554,9 +554,11 @@
+                               ptr1 = strstr(boundary_buf, "boundary=");
+                               if (ptr1 == 0) {
+                                       plist = plist->next;
+-                                      safe_strcpy(boundary_buf, plist->line);
+-                                      change_to_lower(boundary_buf);
+-                                      ptr1 = strstr(boundary_buf, "boundary=");
++                                      if (plist) {
++                                              safe_strcpy(boundary_buf, plist->line);
++                                              change_to_lower(boundary_buf);
++                                              ptr1 = strstr(boundary_buf, "boundary=");
++                                      }
+                               }
+                               if (ptr1) {
This page took 0.111372 seconds and 4 git commands to generate.