From e01e83148e19c5bb622814738ae44f7a3ac167cc Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 1 Apr 2010 21:51:28 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/SSPCPP-288 --- shibsp/handler/impl/MetadataGenerator.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/shibsp/handler/impl/MetadataGenerator.cpp b/shibsp/handler/impl/MetadataGenerator.cpp index de795a7..322b7e3 100644 --- a/shibsp/handler/impl/MetadataGenerator.cpp +++ b/shibsp/handler/impl/MetadataGenerator.cpp @@ -279,11 +279,9 @@ pair MetadataGenerator::processMessage( if (cache.first) { entity->setCacheDuration(cache.second); } - else { - cache = getUnsignedInt("validUntil"); - if (cache.first) - entity->setValidUntil(time(NULL) + cache.second); - } + cache = getUnsignedInt("validUntil"); + if (cache.first) + entity->setValidUntil(time(NULL) + cache.second); entity->setEntityID(relyingParty->getXMLString("entityID").second); SPSSODescriptor* role; -- 2.1.4