0
0
Fork 0
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:
Jilles Tjoelker 2014-03-03 00:01:56 +01:00
parent 1d39324556
commit fea6157df0

View file

@ -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))