diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 15:46:10 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 15:46:10 +0200 |
commit | 91c34d4e971dcc9370d205ff6d8189cd92f1d556 (patch) | |
tree | d615d9a251def2d972cd1a4ca458f13f14249b99 /src/modules | |
parent | 53e9923162ca99cc3059fb0d98ba97371653eb11 (diff) |
m_auditorium Handle NULL return from Channel::GetUser() in OnSendWhoLine()
Found by Coverity, CID: 1135647
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_auditorium.cpp | 2 |
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; |