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';
|
*forward++ = '\0';
|
||||||
if(*forward == '\0')
|
if(*forward == '\0')
|
||||||
tlen--, forward = NULL;
|
tlen--, forward = NULL;
|
||||||
possibly_remove_lower_forward(fakesource_p, mems,
|
else
|
||||||
chptr, banlist, parv[3][0], s, forward);
|
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))
|
if(add_id(fakesource_p, chptr, s, forward, banlist, mode_type))
|
||||||
|
|
Loading…
Reference in a new issue