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

Fixed potential NULL-dereference in userlist().

parent 5768e96e
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,9 @@ void sbbs_t::userlist(long mode)
if(!chk_ar(cfg.grp[usrgrp[curgrp]]->ar,&user,/* client: */NULL))
continue;
if(!chk_ar(cfg.sub[usrsub[curgrp][cursub[curgrp]]]->ar,&user,/* client: */NULL)
|| (cfg.sub[usrsub[curgrp][cursub[curgrp]]]->read_ar[0]
&& !chk_ar(cfg.sub[usrsub[curgrp][cursub[curgrp]]]->read_ar,&user,/* client: */NULL)))
|| (cfg.sub[usrsub[curgrp][cursub[curgrp]]]->read_ar!=NULL
&& cfg.sub[usrsub[curgrp][cursub[curgrp]]]->read_ar[0]
&& !chk_ar(cfg.sub[usrsub[curgrp][cursub[curgrp]]]->read_ar,&user,/* client: */NULL)))
continue;
}
else if(mode==UL_DIR) {
......
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