mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-17 23:51:53 +01: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:
parent
e443182573
commit
9c0f1f3505
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue