Skip to content
Snippets Groups Projects
Commit ccc5d749 authored by rswindell's avatar rswindell
Browse files

If you pass NULL to is_user_subop(), return FALSE (rather than potentially

dereference the NULL pointer).
parent 71987e58
No related branches found
No related tags found
No related merge requests found
......@@ -2534,6 +2534,8 @@ BOOL DLLCALL can_user_post(scfg_t* cfg, uint subnum, user_t* user, client_t* cli
/****************************************************************************/
BOOL DLLCALL is_user_subop(scfg_t* cfg, uint subnum, user_t* user, client_t* client)
{
if(user==NULL)
return FALSE;
if(!can_user_access_sub(cfg, subnum, user, client))
return FALSE;
if(user->level>=SYSOP_LEVEL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment