From: Scott Cantor Date: Mon, 19 Jan 2015 21:04:46 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-612 X-Git-Tag: 2.5.4~26 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=ab15fb866a94989ab150b2bbdf1708d821b5ac71 https://issues.shibboleth.net/jira/browse/SSPCPP-612 --- diff --git a/shibsp/handler/impl/DiscoveryFeed.cpp b/shibsp/handler/impl/DiscoveryFeed.cpp index ad567a1..4b9c438 100644 --- a/shibsp/handler/impl/DiscoveryFeed.cpp +++ b/shibsp/handler/impl/DiscoveryFeed.cpp @@ -143,7 +143,7 @@ DiscoveryFeed::~DiscoveryFeed() // Anything left will be orphaned, but that shouldn't happen too often. time_t now = time(nullptr); while (!m_feedQueue.empty() && now - m_feedQueue.front().second > 120) { - string fname = m_dir + '/' + m_feedQueue.front().first; + string fname = m_dir + '/' + m_feedQueue.front().first + ".json"; remove(fname.c_str()); m_feedQueue.pop(); } @@ -295,7 +295,7 @@ void DiscoveryFeed::feedToFile(const Application& application, string& cacheTag) // Clean up any old files. while (m_feedQueue.size() > 1 && (now - m_feedQueue.front().second > 120)) { - string fname = m_dir + '/' + m_feedQueue.front().first; + string fname = m_dir + '/' + m_feedQueue.front().first + ".json"; remove(fname.c_str()); m_feedQueue.pop(); }