mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 18:33:13 +02:00
Fix OOB read in m_whox.
Strange order for a compare, first the 2nd byte, then the 1st byte ;) Anyway, this issue can only be triggered since rc1, no big issue.
This commit is contained in:
@@ -359,7 +359,7 @@ CMD_FUNC(m_whox)
|
||||
* request a full list. I presume its because of too many typos
|
||||
* with "/who" ;) --fl
|
||||
*/
|
||||
if ((*(mask + 1) == '\0') && (*mask == '0'))
|
||||
if (!strcmp(mask, "0"))
|
||||
who_global(sptr, NULL, 0, &fmt);
|
||||
else
|
||||
who_global(sptr, mask, operspy, &fmt);
|
||||
|
||||
Reference in New Issue
Block a user