summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-12 23:34:01 -0500
committerAttila Molnar <attilamolnar@hush.com>2014-02-13 11:07:23 +0100
commite91c34ae364824d0b74c224c13d74534a65f2402 (patch)
treecd3ac4a82e00e5e9343172bbcab9065601240812
parenta4f222ee1b05e2fdb2744c1694f9140f8099b009 (diff)
Remove redundant null pointer check from m_ldapauth
-rw-r--r--src/modules/m_ldapauth.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}