summaryrefslogtreecommitdiff
path: root/chat/ircd-hybrid
diff options
context:
space:
mode:
authorspz <spz>2013-03-23 19:29:50 +0000
committerspz <spz>2013-03-23 19:29:50 +0000
commite852267454a186316ee1419a0568d5e050debab2 (patch)
tree0b769d467a7decb93a1e16598fd8d11b071a56c1 /chat/ircd-hybrid
parent562bf2cf7b5d2089fe24c62ee97d7470492394bb (diff)
downloadpkgsrc-e852267454a186316ee1419a0568d5e050debab2.tar.gz
fix http://secunia.com/advisories/51948/ by applying a patch taken from
svn.ircd-hybrid.org
Diffstat (limited to 'chat/ircd-hybrid')
-rw-r--r--chat/ircd-hybrid/Makefile4
-rw-r--r--chat/ircd-hybrid/distinfo3
-rw-r--r--chat/ircd-hybrid/patches/patch-src_hostmask.c16
3 files changed, 20 insertions, 3 deletions
diff --git a/chat/ircd-hybrid/Makefile b/chat/ircd-hybrid/Makefile
index 0d062223646..ebece13eea1 100644
--- a/chat/ircd-hybrid/Makefile
+++ b/chat/ircd-hybrid/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2013/02/06 23:21:47 jperkin Exp $
+# $NetBSD: Makefile,v 1.47 2013/03/23 19:29:50 spz Exp $
DISTNAME= ircd-hybrid-7.2.3
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ircd-hybrid/}
EXTRACT_SUFX= .tgz
diff --git a/chat/ircd-hybrid/distinfo b/chat/ircd-hybrid/distinfo
index 7b9bc0783b0..fa8c3fa183d 100644
--- a/chat/ircd-hybrid/distinfo
+++ b/chat/ircd-hybrid/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2012/12/20 22:01:22 joerg Exp $
+$NetBSD: distinfo,v 1.15 2013/03/23 19:29:51 spz Exp $
SHA1 (ircd-hybrid-7.2.3.tgz) = f8a61e5500d28a4b4cded5f096c3627c2e5f01a0
RMD160 (ircd-hybrid-7.2.3.tgz) = 58bec65da2492480b9a4e86777c6c19a4b568408
@@ -15,4 +15,5 @@ SHA1 (patch-ai) = 85e2f0650e22d8b948f65f66c6f35a9465f07b53
SHA1 (patch-include_memory_h) = dbfa0d3987716e70464054d4f67facd42f3b1973
SHA1 (patch-include_tools.h) = 1381a32a05095d9e40fcc929db5fa8f2fb7e048d
SHA1 (patch-servlink_makefile_in) = d8f3b2d5877b0851a9e10fb1ebb201f9cfcfb162
+SHA1 (patch-src_hostmask.c) = e9fba90ea737c0b13ec92db5014d696beebdac43
SHA1 (patch-src_makefile_in) = d92326eb9bcc9db84add691561a2319881e118b3
diff --git a/chat/ircd-hybrid/patches/patch-src_hostmask.c b/chat/ircd-hybrid/patches/patch-src_hostmask.c
new file mode 100644
index 00000000000..830f1182066
--- /dev/null
+++ b/chat/ircd-hybrid/patches/patch-src_hostmask.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_hostmask.c,v 1.1 2013/03/23 19:29:51 spz Exp $
+
+fix http://secunia.com/advisories/51948/ (taken from
+http://svn.ircd-hybrid.org:8000/viewcvs.cgi/ircd-hybrid/trunk/src/hostmask.c?r1=1786&r2=1785&pathrev=1786)
+
+--- src/hostmask.c.orig 2007-02-28 04:17:46.000000000 +0000
++++ src/hostmask.c
+@@ -198,7 +198,7 @@ try_parse_v4_netmask(const char *text, s
+ {
+ char *after;
+ bits = strtoul(p + 1, &after, 10);
+- if (!bits || *after)
++ if (bits < 0 || *after)
+ return HM_HOST;
+ if (bits > n * 8)
+ return HM_HOST;