Try and work around Solaris compiler bug.
authorScott Cantor <cantor.2@osu.edu>
Thu, 2 Oct 2008 18:14:25 +0000 (18:14 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 2 Oct 2008 18:14:25 +0000 (18:14 +0000)
shibsp/attribute/filtering/impl/XMLAttributeFilter.cpp

index b01cf1f..801ea57 100644 (file)
@@ -300,10 +300,13 @@ pair< string,pair<const MatchFunctor*,const MatchFunctor*> > XMLFilterImpl::buil
     }
 
     if (perm || deny) {
-        if (*id)
-            return m_attrRules[id] = pair< string,pair<const MatchFunctor*,const MatchFunctor*> >(attrID.get(), pair<const MatchFunctor*,const MatchFunctor*>(perm,deny));
-        else
+        if (*id) {
+            m_attrRules[id] = pair< string,pair<const MatchFunctor*,const MatchFunctor*> >(attrID.get(), pair<const MatchFunctor*,const MatchFunctor*>(perm,deny));
+            return m_attrRules[id];
+        }
+        else {
             return pair< string,pair<const MatchFunctor*,const MatchFunctor*> >(attrID.get(), pair<const MatchFunctor*,const MatchFunctor*>(perm,deny));
+        }
     }
 
     m_log.warn("skipping AttributeRule (%s), permit and denial rule(s) invalid or missing", id);