diff --git a/src/scitokens.cpp b/src/scitokens.cpp index e8d2b8c..622afdb 100644 --- a/src/scitokens.cpp +++ b/src/scitokens.cpp @@ -618,12 +618,10 @@ class XrdAccSciTokens : public XrdAccAuthorize m_audiences_array[idx] = nullptr; m_issuers = std::move(issuers); - m_valid_issuers.clear(); - m_valid_issuers.reserve(m_issuers.size()); m_valid_issuers_array.resize(m_issuers.size() + 1); idx = 0; - for (const auto &issuer : m_valid_issuers) { - m_valid_issuers_array[idx++] = issuer.c_str(); + for (const auto &issuer : m_issuers) { + m_valid_issuers_array[idx++] = issuer.first.c_str(); } m_valid_issuers_array[idx] = nullptr; } catch (...) { @@ -657,7 +655,6 @@ class XrdAccSciTokens : public XrdAccAuthorize std::map> m_map; std::unique_ptr m_chain; const std::string m_parms; - std::vector m_valid_issuers; std::vector m_valid_issuers_array; std::unordered_map m_issuers; uint64_t m_next_clean{0};