From e91c34ae364824d0b74c224c13d74534a65f2402 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 12 Feb 2014 23:34:01 -0500 Subject: Remove redundant null pointer check from m_ldapauth --- src/modules/m_ldapauth.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index b77193e9d..e89ce4949 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -232,8 +232,7 @@ class SearchInterface : public LDAPInterface std::string bindDn = a.get("dn"); if (bindDn.empty()) { - if (user) - ServerInstance->Users->QuitUser(user, killreason); + ServerInstance->Users->QuitUser(user, killreason); delete this; return; } -- cgit v1.2.3