Skip to content

Commit

Permalink
Fixed null-check bug in GetChannelProp()
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Jul 29, 2019
1 parent d4db0b2 commit 6a527fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/TeamTalkLib/teamtalk/server/ServerNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ bool ServerNode::GetChannelProp(int channelid, ChannelProp& prop)
GUARD_OBJ(this, lock());

serverchannel_t chan = GetChannel(channelid);
if(chan)
if(!chan)
return false;

prop = chan->GetChannelProp();
Expand Down

0 comments on commit 6a527fb

Please sign in to comment.