mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed issue where other could send a bad userstatus.
This commit is contained in:
parent
f7beb70fe9
commit
91838f8c2d
|
@ -1969,6 +1969,9 @@ void do_friends(Messenger *m)
|
|||
|
||||
USERSTATUS status = data[0];
|
||||
|
||||
if (status >= USERSTATUS_INVALID)
|
||||
break;
|
||||
|
||||
if (m->friend_userstatuschange)
|
||||
m->friend_userstatuschange(m, i, status, m->friend_userstatuschange_userdata);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user