From: Scott Cantor Date: Fri, 8 Feb 2008 17:13:28 +0000 (+0000) Subject: Add implicit support for a "null" protocol. X-Git-Tag: 2.0.0~10 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=3bed08b2d983bce1c808ee494f8c15e08eb0f246;hp=9feb31702e26a76de7030d712d61c2312aa168a8 Add implicit support for a "null" protocol. --- diff --git a/saml/saml2/metadata/impl/MetadataImpl.cpp b/saml/saml2/metadata/impl/MetadataImpl.cpp index c7088ea..91615d9 100644 --- a/saml/saml2/metadata/impl/MetadataImpl.cpp +++ b/saml/saml2/metadata/impl/MetadataImpl.cpp @@ -965,6 +965,8 @@ namespace opensaml { IMPL_TYPED_CHILDREN(ContactPerson,m_pos_ContactPerson); bool hasSupport(const XMLCh* protocol) const { + if (!protocol || !*protocol) + return true; if (m_ProtocolSupportEnumeration) { // Look for first character. unsigned int len=XMLString::stringLen(protocol);