diff options
| author | 2022-01-09 14:38:01 +0000 | |
|---|---|---|
| committer | 2022-01-09 14:38:01 +0000 | |
| commit | dbfcc74e23067a1cc2ceb3bccfff9e8868947419 (patch) | |
| tree | c32f081119846966face3d36f6bb1af8ce4a2b9b /src/modules/m_ldapoper.cpp | |
| parent | Replace some references to "SSL" that snuck in during the merge. (diff) | |
Always catch exceptions as a constant reference.
Diffstat (limited to 'src/modules/m_ldapoper.cpp')
| -rw-r--r-- | src/modules/m_ldapoper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_ldapoper.cpp b/src/modules/m_ldapoper.cpp index 9d1e5a28b..d6fb979a2 100644 --- a/src/modules/m_ldapoper.cpp +++ b/src/modules/m_ldapoper.cpp @@ -119,7 +119,7 @@ class SearchInterface final LDAP->Bind(new BindInterface(this->creator, uid, opername, password), bindDn, password); } - catch (LDAPException& ex) + catch (const LDAPException& ex) { ServerInstance->SNO.WriteToSnoMask('a', "Error searching LDAP server: " + ex.GetReason()); } @@ -173,7 +173,7 @@ class AdminBindInterface final { LDAP->Search(new SearchInterface(this->creator, provider, user, opername, password), base, what); } - catch (LDAPException& ex) + catch (const LDAPException& ex) { ServerInstance->SNO.WriteToSnoMask('a', "Error searching LDAP server: " + ex.GetReason()); } @@ -240,7 +240,7 @@ class ModuleLDAPOper final LDAP->BindAsManager(new AdminBindInterface(this, LDAP.GetProvider(), user->uuid, opername, password, base, what)); return MOD_RES_DENY; } - catch (LDAPException& ex) + catch (const LDAPException& ex) { ServerInstance->SNO.WriteToSnoMask('a', "LDAP exception: " + ex.GetReason()); } |
