From dd24f8ac713793d5d5a7e959228937f48788ba66 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 11 Oct 2019 12:21:16 +0100 Subject: Convert a bunch of LocalUser* casts to IS_LOCAL. This is a lot safer and handles users changing servers properly. --- src/modules/m_ldapauth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ldapauth.cpp') diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index b833b9384..845fc6fbd 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -216,7 +216,7 @@ class SearchInterface : public LDAPInterface void OnResult(const LDAPResult& r) CXX11_OVERRIDE { - LocalUser* user = static_cast(ServerInstance->FindUUID(uid)); + LocalUser* user = IS_LOCAL(ServerInstance->FindUUID(uid)); dynamic_reference LDAP(me, provider); if (!LDAP || r.empty() || !user) { -- cgit v1.3.1-10-gc9f91