From: Scott Cantor Date: Fri, 22 May 2009 01:19:36 +0000 (+0000) Subject: Check for missing children. X-Git-Tag: 2.2.0~49 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=1292b5755985d8952d5b16cb4184c62e3e4f1169;p=shibboleth%2Fcpp-sp.git Check for missing children. --- diff --git a/shibsp/impl/ChainingAccessControl.cpp b/shibsp/impl/ChainingAccessControl.cpp index fab0a53..7642a0a 100644 --- a/shibsp/impl/ChainingAccessControl.cpp +++ b/shibsp/impl/ChainingAccessControl.cpp @@ -106,6 +106,8 @@ ChainingAccessControl::ChainingAccessControl(const DOMElement* e) for_each(m_ac.begin(), m_ac.end(), xmltooling::cleanup()); throw; } + if (m_ac.empty()) + throw ConfigurationException("Chaining AccessControl plugin requires at least one child plugin."); } AccessControl::aclresult_t ChainingAccessControl::authorized(const SPRequest& request, const Session* session) const