[cpp-sp] branch main updated: Fix reference to ptree member.

Codeberg noreply at shibboleth.net
Mon Jul 13 16:45:33 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/7be41aa9c36358a5068ac3d32ad1b38de2a824f7

The following commit(s) were added to refs/heads/main by this push:
     new 7be41aa9 Fix reference to ptree member.
7be41aa9 is described below

commit 7be41aa9c36358a5068ac3d32ad1b38de2a824f7
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Jul 13 12:45:20 2026 -0400

    Fix reference to ptree member.
---
 shibsp/attribute/impl/DefaultAttributeConfiguration.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp b/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
index a9d7e771..1f323f62 100644
--- a/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
+++ b/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
@@ -137,7 +137,7 @@ void DefaultAttributeConfiguration::init(const ptree& pt)
         m_mappings[name] = name;
     }
 
-    boost::optional<ptree&> settings = m_pt.get_child_optional(SETTINGS_PROP_SECTION_NAME);
+    boost::optional<const ptree&> settings = pt.get_child_optional(SETTINGS_PROP_SECTION_NAME);
     if (settings) {
         // The load is a convenience, but all the settings are captured here in the c'tor.
         load(settings.get());
@@ -158,7 +158,7 @@ void DefaultAttributeConfiguration::init(const ptree& pt)
         m_partialRegexMatching = Agent::PARTIAL_REGEX_MATCHING_PROP_DEFAULT;
     }
 
-    boost::optional<ptree&> mappings = m_pt.get_child_optional(MAPPINGS_PROP_SECTION_NAME);
+    boost::optional<const ptree&> mappings = pt.get_child_optional(MAPPINGS_PROP_SECTION_NAME);
     if (!mappings) {
         return;
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list