diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2004-03-07 20:49:32 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2004-03-07 20:49:32 +0000 |
commit | c16e051e6966d5c88e2624551ad68d8efcc6698f (patch) | |
tree | fe43222ca18e06646e2d5859cbf1a593436d79d4 /mail/anubis/files/patch-freebsd | |
parent | - Update Portable.NET suite to 0.6.2 (diff) |
Buffer overflow and format string fixes.
(Also don't put several patches in a single file.)
Approved by: sergei
Obtained from: upstream
Reported by: Ulf Harnhammar <Ulf.Harnhammar.9485@student.uu.se>
Notes
Notes:
svn path=/head/; revision=103226
Diffstat (limited to 'mail/anubis/files/patch-freebsd')
-rw-r--r-- | mail/anubis/files/patch-freebsd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/mail/anubis/files/patch-freebsd b/mail/anubis/files/patch-freebsd deleted file mode 100644 index 42057fc495e2..000000000000 --- a/mail/anubis/files/patch-freebsd +++ /dev/null @@ -1,38 +0,0 @@ -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) { |