From 13d62631eaec88b8141c4286be613859022ce024 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Mon, 13 Jun 2005 02:30:36 +0000 Subject: [PATCH] Reject strings containing '?' as not being IP masks. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1421 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/match.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ff5a181..a5c03f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-10 Michael Poole + + * ircd/match.c (check_if_ipmask): Strings that contain '?' cannot + be true IP masks. + 2005-05-30 Michael Poole * ircd/test/Makefile.in: Add LDFLAGS variable for profiling purposes. diff --git a/ircd/match.c b/ircd/match.c index 5302018..68f57d1 100644 --- a/ircd/match.c +++ b/ircd/match.c @@ -881,7 +881,7 @@ int check_if_ipmask(const char *mask) if (mask[0] == '.' || mask[0] == '/') return 0; for (p = mask; *p; ++p) - if (*p != '*' && *p != '?' && *p != '.' && *p != '/') + if (*p != '*' && *p != '.' && *p != '/') { if (!IsDigit(*p)) return 0; -- 2.20.1