projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support option to keep DOM
[shibboleth/cpp-opensaml.git]
/
saml
/
saml2
/
metadata
/
impl
/
DynamicMetadataProvider.cpp
diff --git
a/saml/saml2/metadata/impl/DynamicMetadataProvider.cpp
b/saml/saml2/metadata/impl/DynamicMetadataProvider.cpp
index
238aab0
..
6b39787
100644
(file)
--- a/
saml/saml2/metadata/impl/DynamicMetadataProvider.cpp
+++ b/
saml/saml2/metadata/impl/DynamicMetadataProvider.cpp
@@
-203,7
+203,7
@@
pair<const EntityDescriptor*,const RoleDescriptor*> DynamicMetadataProvider::get
}
// Filter it, which may throw.
}
// Filter it, which may throw.
- doFilters(*entity2
.get()
);
+ doFilters(*entity2);
time_t now = time(nullptr);
if (entity2->getValidUntil() && entity2->getValidUntilEpoch() < now + 60)
time_t now = time(nullptr);
if (entity2->getValidUntil() && entity2->getValidUntilEpoch() < now + 60)
@@
-239,7
+239,8
@@
pair<const EntityDescriptor*,const RoleDescriptor*> DynamicMetadataProvider::get
// Make sure we clear out any existing copies, including stale metadata or if somebody snuck in.
cacheExp = SAMLTIME_MAX;
// Make sure we clear out any existing copies, including stale metadata or if somebody snuck in.
cacheExp = SAMLTIME_MAX;
- indexEntity(entity2.release(), cacheExp, true);
+ indexEntity(entity2.get(), cacheExp, true);
+ entity2.release();
m_lastUpdate = now;
m_lastUpdate = now;