summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-07-19 17:21:01 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-07-19 17:21:01 +0000
commitbd4c1907846b95b95e7d89da42f65bb2b2064057 (patch)
tree64f78e8027169ec901f2bcea38c828570693e073
parent08f96ac5b57c15b309c63c5cb461b8a334091760 (diff)
- conf.c:valid_wild_card_simple(): don't read past the zero character
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@4263 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 2749ec8..5850ffb 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -1744,7 +1744,7 @@ valid_wild_card_simple(const char *data)
while ((tmpch = *p++))
{
- if (tmpch == '\\')
+ if (tmpch == '\\' && *p)
{
++p;
if (++nonwild >= ConfigFileEntry.min_nonwildcard_simple)