From: Scott Cantor Date: Wed, 12 Aug 2009 15:36:38 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-231 X-Git-Tag: 2.2.1~4 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=fcadb984ff1e4ede84d1042f1c1bc7e0bf4760f7 https://issues.shibboleth.net/jira/browse/SSPCPP-231 --- diff --git a/apache/mod_apache.cpp b/apache/mod_apache.cpp index 368533e..661b448 100644 --- a/apache/mod_apache.cpp +++ b/apache/mod_apache.cpp @@ -1152,9 +1152,10 @@ AccessControl::aclresult_t htAccessControl::authorized(const SPRequest& request, auto_ptr temp(new xercesc::RegularExpression(trans.get())); re=temp; } - - for (; !status && attrs.first!=attrs.second; ++attrs.first) { - if (checkAttribute(request, attrs.first->second, w, regexp ? re.get() : NULL)) { + + pair::const_iterator,multimap::const_iterator> attrs2(attrs); + for (; !status && attrs2.first!=attrs2.second; ++attrs2.first) { + if (checkAttribute(request, attrs2.first->second, w, regexp ? re.get() : NULL)) { status = true; } }