]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove redundant null pointer check from m_ldapauth
authorAdam <Adam@anope.org>
Thu, 13 Feb 2014 04:34:01 +0000 (23:34 -0500)
committerAttila Molnar <attilamolnar@hush.com>
Thu, 13 Feb 2014 10:07:23 +0000 (11:07 +0100)
src/modules/m_ldapauth.cpp

index b77193e9d202148c7a022b94fef932fa8e744625..e89ce494981c02ff69fa3296536ec469e57f08f7 100644 (file)
@@ -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;
                        }