diff options
author | Peter Powell <petpow@saberuk.com> | 2019-10-11 12:21:16 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-10-13 22:05:19 +0100 |
commit | dd24f8ac713793d5d5a7e959228937f48788ba66 (patch) | |
tree | 1f55ed9c83ad62acdb628f77f0b347044f26d61a /src/modules/m_ldapauth.cpp | |
parent | f751aef21057d8b4be40cdb697982ea3e53e992c (diff) |
Convert a bunch of LocalUser* casts to IS_LOCAL.
This is a lot safer and handles users changing servers properly.
Diffstat (limited to 'src/modules/m_ldapauth.cpp')
-rw-r--r-- | src/modules/m_ldapauth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<LocalUser*>(ServerInstance->FindUUID(uid)); + LocalUser* user = IS_LOCAL(ServerInstance->FindUUID(uid)); dynamic_reference<LDAPProvider> LDAP(me, provider); if (!LDAP || r.empty() || !user) { |