X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2Fimpl%2FArtifactMap.cpp;h=e4bae0e0c685116739b3956a59e8f3ec4c91c683;hp=c63c57ad1c463eeff7ad1e5064b025b523613a77;hb=ec145bf31d59d23bbf63cdc39ffeb172ed29d67d;hpb=87caecf37aca451b5b5e658416d6ddd19e62ae2b diff --git a/saml/binding/impl/ArtifactMap.cpp b/saml/binding/impl/ArtifactMap.cpp index c63c57a..e4bae0e 100644 --- a/saml/binding/impl/ArtifactMap.cpp +++ b/saml/binding/impl/ArtifactMap.cpp @@ -190,7 +190,12 @@ ArtifactMap::ArtifactMap(const DOMElement* e, xmltooling::StorageService* storag const XMLCh* TTL = e->getAttributeNS(nullptr, artifactTTL); if (TTL) { - m_artifactTTL = XMLString::parseInt(TTL); + try { + m_artifactTTL = XMLString::parseInt(TTL); + } + catch (XMLException&) { + m_artifactTTL = 0; + } if (!m_artifactTTL) m_artifactTTL = 180; }