X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_shib.cpp;h=d0c1a79fb36fec543bbd24251be9357787713e6f;hb=d4df67b7a039c1bb295cde1d95575c297f62fef8;hp=33280d51096f1a953e44a981845d34e638b7c143;hpb=f5520dda3e0b9241b8c39a2d66e72224d51f3214;p=cyrus-sasl.git diff --git a/mech_eap/util_shib.cpp b/mech_eap/util_shib.cpp index 33280d5..d0c1a79 100644 --- a/mech_eap/util_shib.cpp +++ b/mech_eap/util_shib.cpp @@ -352,6 +352,9 @@ gss_eap_shib_attr_provider::mapToAny(int authenticated, { gss_any_t output; + if (authenticated && !m_authenticated) + return (gss_any_t)NULL; + vector v = duplicateAttributes(m_attributes); output = (gss_any_t)new vector (v);