https://issues.shibboleth.net/jira/browse/SSPCPP-190
authorScott Cantor <cantor.2@osu.edu>
Tue, 3 Mar 2009 18:11:19 +0000 (18:11 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 3 Mar 2009 18:11:19 +0000 (18:11 +0000)
shibsp/attribute/filtering/impl/XMLAttributeFilter.cpp

index afd10e1..32fab83 100644 (file)
@@ -433,18 +433,19 @@ void XMLFilterImpl::filterAttributes(const FilteringContext& context, vector<Att
                 if (row[index-1])
                     attr->removeValue(index-1);
             }
+        }
 
-            // Check for no values.
-            if (attr->valueCount() == 0) {
-                m_log.warn(
-                    "no values left, removing attribute (%s) from (%s)",
-                    attr->getId(), issuer.get() ? issuer.get() : "unknown source"
-                    );
-                delete attr;
-                attributes.erase(attributes.begin() + a);
-                continue;
-            }
+        // Check for no values.
+        if (attr->valueCount() == 0) {
+            m_log.warn(
+                "no values left, removing attribute (%s) from (%s)",
+                attr->getId(), issuer.get() ? issuer.get() : "unknown source"
+                );
+            delete attr;
+            attributes.erase(attributes.begin() + a);
+            continue;
         }
+
         ++a;
     }
 }