aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-04-13 15:46:10 +0200
committerGravatar Attila Molnar2014-04-13 15:46:10 +0200
commit91c34d4e971dcc9370d205ff6d8189cd92f1d556 (patch)
treed615d9a251def2d972cd1a4ca458f13f14249b99
parentIgnore NULL callbacks in ModuleManager::Reload() (diff)
m_auditorium Handle NULL return from Channel::GetUser() in OnSendWhoLine()
Found by Coverity, CID: 1135647
-rw-r--r--src/modules/m_auditorium.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index c3e31c583..2a8edb9d4 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -183,7 +183,7 @@ class ModuleAuditorium : public Module
if (!channel)
return;
Membership* memb = channel->GetUser(user);
- if (IsVisible(memb))
+ if ((!memb) || (IsVisible(memb)))
return;
if (CanSee(source, memb))
return;