aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ldapoper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ldapoper.cpp')
-rw-r--r--src/modules/m_ldapoper.cpp6
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());
}