Bad indirection in iterator
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 14 Mar 2004 07:47:25 +0000 (07:47 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 14 Mar 2004 07:47:25 +0000 (07:47 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@836 cb58f699-b61c-0410-a6fe-9272a202ed29

xmlproviders/XMLRevocation.cpp

index f4fd573..6f33ff2 100644 (file)
@@ -302,9 +302,8 @@ Iterator<void*> XMLRevocation::getRevocationLists(const IProvider* provider, con
 #else
         // Without a decent STL, we trade-off the transcoding by doing a linear search.
         for (vector<XMLRevocationImpl::KeyAuthority*>::const_iterator keyauths=impl->m_keyauths.begin(); keyauths!=impl->m_keyauths.end(); keyauths++) {
-            for (vector<const XMLCh*>::const_iterator subs=keyauths->m_subjects.begin(); subs!=keyauths->m_subjects.end(); subs++) {
+            for (vector<const XMLCh*>::const_iterator subs=(*keyauths)->m_subjects.begin(); subs!=(*keyauths)->m_subjects.end(); subs++) {
                 if (!XMLString::compareString(*name,*subs)) {
-                    kauth=*keyauths;
                     if (log.isDebugEnabled()) {
                         auto_ptr_char temp(*name);
                         log.debug("revocation list match on %s",temp.get());