1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 14:43:12 +02:00

- Fixed a match() bug

In case of a mask like '*\' it was trying to read out of bounds data.
This commit is contained in:
Bram Matthys
2003-03-09 03:07:59 +00:00
parent fa1f8c3d0f
commit 45e2b69a07
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -1965,3 +1965,4 @@ seen. gmtime warning still there
- Fixed a bug in /list where opers could not see +s channels when doing /list #channel.
Reported by _SciFi_ (#0000762)
- Fixed a /who big which could make the server crash (oper only).
- Fixed a match() bug
+3
View File
@@ -97,6 +97,9 @@ static inline int match2(char *mask, char *name)
{
cm = *(++m); /* just skip this char, no ? checking */
/* In case of something like: '*\', return false. */
if (!*m)
return 1;
}
else if (cm == '?') /* if it's a ? */
{