summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-17 01:35:04 +0100
committerPeter Powell <petpow@saberuk.com>2013-06-06 01:06:47 +0100
commitcc79342f50ce345657fca16c90f1d37a9228d8ad (patch)
tree0a283f12a2e4eae07e7c0f43a1f254d59cad98e0 /src/modules/extra
parent047e29179766076146e7bd6126a883f4f3c95150 (diff)
Compare to ServerLimits::MaxLine instead of MAXBUF.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ldapauth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ldapauth.cpp b/src/modules/extra/m_ldapauth.cpp
index ebfefd02b..0a0698fc2 100644
--- a/src/modules/extra/m_ldapauth.cpp
+++ b/src/modules/extra/m_ldapauth.cpp
@@ -212,7 +212,7 @@ public:
std::string> &replacements)
{
std::string result;
- result.reserve(ServerInstance->Config->Limits.MaxLine);
+ result.reserve(text.length());
for (unsigned int i = 0; i < text.length(); ++i) {
char c = text[i];