Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11
Commit time: 2005-04-19 01:02:22 UTC
Modified files:
Tag: u2_10_11
ChangeLog ircd/support.c
Log message:
Avoid intepreting non-IP-based hostmasks as IP-based.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.131 ircu2.10/ChangeLog:1.290.2.132
--- ircu2.10/ChangeLog:1.290.2.131 Fri Sep 17 19:13:24 2004
+++ ircu2.10/ChangeLog Mon Apr 18 18:02:06 2005
@@ -1,3 +1,8 @@
+2005-04-18 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/support.c (check_if_ipmask): Do not interpret masks that
+ start with . or / as IP-based host masks.
+
2004-09-17 Kevin L Mitchell <[EMAIL PROTECTED]>
* include/patchlevel.h (PATCHLEVEL): Release the sucker.
Index: ircu2.10/ircd/support.c
diff -u ircu2.10/ircd/support.c:1.7 ircu2.10/ircd/support.c:1.7.2.1
--- ircu2.10/ircd/support.c:1.7 Fri Jun 29 08:51:03 2001
+++ ircu2.10/ircd/support.c Mon Apr 18 18:02:12 2005
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: support.c,v 1.7 2001/06/29 15:51:03 kev Exp $
+ * $Id: support.c,v 1.7.2.1 2005/04/19 01:02:12 entrope Exp $
*/
#include "config.h"
@@ -42,6 +42,8 @@
int has_digit = 0;
const char *p;
+ if (*mask == '.' || *mask == '/')
+ return 0;
for (p = mask; *p; ++p)
if (*p != '*' && *p != '?' && *p != '.' && *p != '/')
{
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches