From: Amos Jeffries Date: Fri, 23 Oct 2015 04:10:43 +0000 (-0700) Subject: Bug 4356: segmentation fault using proxy_auth ACL X-Git-Tag: SQUID_4_0_2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87b5a196d3efe57d00de1eeb87d20a74f09f3d59;p=thirdparty%2Fsquid.git Bug 4356: segmentation fault using proxy_auth ACL --- diff --git a/src/acl/UserData.cc b/src/acl/UserData.cc index 3497677bea..daa8fee57f 100644 --- a/src/acl/UserData.cc +++ b/src/acl/UserData.cc @@ -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;