X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2Fimpl%2FArtifactMap.cpp;h=c63c57ad1c463eeff7ad1e5064b025b523613a77;hp=6dd3fbba2d2cd671c8a1ed39270bbca1de533659;hb=1462057b3b9ae7e165d34d988e30b14c213672ca;hpb=59f8e99deb7181862dbc717e2ee74542667e19d0 diff --git a/saml/binding/impl/ArtifactMap.cpp b/saml/binding/impl/ArtifactMap.cpp index 6dd3fbb..c63c57a 100644 --- a/saml/binding/impl/ArtifactMap.cpp +++ b/saml/binding/impl/ArtifactMap.cpp @@ -106,7 +106,7 @@ void ArtifactMappings::removeMapping(const map::iterator& i) void ArtifactMappings::storeContent(XMLObject* content, const SAMLArtifact* artifact, const char* relyingParty, int TTL) { - Lock wrapper(m_lock.get()); + Lock wrapper(m_lock); // Garbage collect any expired artifacts. time_t now = time(nullptr); @@ -128,8 +128,8 @@ void ArtifactMappings::storeContent(XMLObject* content, const SAMLArtifact* arti XMLObject* ArtifactMappings::retrieveContent(const SAMLArtifact* artifact, const char* relyingParty) { - Category& log=Category::getInstance(SAML_LOGCAT".ArtifactMap"); - Lock wrapper(m_lock.get()); + Category& log=Category::getInstance(SAML_LOGCAT ".ArtifactMap"); + Lock wrapper(m_lock); map::iterator i = m_artMap.find(SAMLArtifact::toHex(artifact->getMessageHandle())); if (i == m_artMap.end()) @@ -251,7 +251,7 @@ XMLObject* ArtifactMap::retrieveContent(const SAMLArtifact* artifact, const char #ifdef _DEBUG xmltooling::NDC ndc("retrieveContent"); #endif - Category& log=Category::getInstance(SAML_LOGCAT".ArtifactMap"); + Category& log=Category::getInstance(SAML_LOGCAT ".ArtifactMap"); if (!m_storage) return m_mappings->retrieveContent(artifact, relyingParty);