Commit 2f581a56 authored by rswindell's avatar rswindell
Browse files

Fixed observed NULL-dereference in dir_op().

parent 7c897aab
......@@ -752,7 +752,7 @@ uint sbbs_t::getusrsub(uint subnum)
int sbbs_t::dir_op(uint dirnum)
{
return(SYSOP || (cfg.dir[dirnum]->op_ar[0] && chk_ar(cfg.dir[dirnum]->op_ar,&useron,&client)));
return(SYSOP || (cfg.dir[dirnum]->op_ar!=NULL && cfg.dir[dirnum]->op_ar[0] && chk_ar(cfg.dir[dirnum]->op_ar,&useron,&client)));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment