X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fmetadata%2Fimpl%2FAbstractMetadataProvider.cpp;h=fd7948c93cf2dbb133a02517ef1c5ba3662f26a2;hp=dd9cc1418796d315b429e8f7f8afd9a15f3bd010;hb=17b312daa349580f67cc07fc190125224146cf14;hpb=3bed08b2d983bce1c808ee494f8c15e08eb0f246 diff --git a/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp b/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp index dd9cc14..fd7948c 100644 --- a/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp +++ b/saml/saml2/metadata/impl/AbstractMetadataProvider.cpp @@ -205,7 +205,7 @@ pair AbstractMetadataProvider::ge if (!result.first && !criteria.validOnly && range.first!=range.second) result.first = range.first->second; - if (result.first && criteria.role && criteria.protocol) { + if (result.first && criteria.role) { result.second = result.first->getRoleDescriptor(*criteria.role, criteria.protocol); if (!result.second && criteria.protocol2) result.second = result.first->getRoleDescriptor(*criteria.role, criteria.protocol2);