From 047e29179766076146e7bd6126a883f4f3c95150 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 17 May 2013 01:34:25 +0100 Subject: Reserve ServerLimits::MaxLine instead of MAXBUF. --- src/modules/extra/m_ldapauth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra/m_ldapauth.cpp') diff --git a/src/modules/extra/m_ldapauth.cpp b/src/modules/extra/m_ldapauth.cpp index 2d1551b43..ebfefd02b 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(MAXBUF); + result.reserve(ServerInstance->Config->Limits.MaxLine); for (unsigned int i = 0; i < text.length(); ++i) { char c = text[i]; -- cgit v1.2.3