]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4356: segmentation fault using proxy_auth ACL
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 23 Oct 2015 04:10:43 +0000 (21:10 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 23 Oct 2015 04:10:43 +0000 (21:10 -0700)
src/acl/UserData.cc

index 3497677bea823b94f9f3243b3fac0db90ef96484..daa8fee57ff69c80a462a4028d119fc9036af870 100644 (file)
@@ -54,6 +54,12 @@ ACLUserData::dump() const
     return sl;
 }
 
+static bool
+CaseSensitiveSBufCompare(const SBuf &lhs, const SBuf &rhs)
+{
+    return (lhs.cmp(rhs) < 0);
+}
+
 static bool
 CaseInsensitveSBufCompare(const SBuf &lhs, const SBuf &rhs)
 {
@@ -61,7 +67,7 @@ CaseInsensitveSBufCompare(const SBuf &lhs, const SBuf &rhs)
 }
 
 ACLUserData::ACLUserData() :
-    userDataNames()
+    userDataNames(CaseSensitiveSBufCompare)
 {
     flags.case_insensitive = false;
     flags.required = false;