From 91c34d4e971dcc9370d205ff6d8189cd92f1d556 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 13 Apr 2014 15:46:10 +0200 Subject: m_auditorium Handle NULL return from Channel::GetUser() in OnSendWhoLine() Found by Coverity, CID: 1135647 --- src/modules/m_auditorium.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3