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:
@@ -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
|
||||
|
||||
@@ -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 ? */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user