mirror of
https://github.com/matrix-construct/construct
synced 2024-11-20 17:01:55 +01:00
Avoid possible null dereference.
This commit is contained in:
parent
1d39324556
commit
fea6157df0
1 changed files with 4 additions and 2 deletions
|
@ -376,8 +376,10 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
*forward++ = '\0';
|
||||
if(*forward == '\0')
|
||||
tlen--, forward = NULL;
|
||||
possibly_remove_lower_forward(fakesource_p, mems,
|
||||
chptr, banlist, parv[3][0], s, forward);
|
||||
else
|
||||
possibly_remove_lower_forward(fakesource_p,
|
||||
mems, chptr, banlist,
|
||||
parv[3][0], s, forward);
|
||||
}
|
||||
|
||||
if(add_id(fakesource_p, chptr, s, forward, banlist, mode_type))
|
||||
|
|
Loading…
Reference in a new issue