From: Luke Howard Date: Sat, 2 Apr 2011 13:06:33 +0000 (+1100) Subject: return assertion also in display_value; do not assume value X-Git-Tag: dvd/201105~12^2~16 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=e9482d877d8daf59879502619b93d929561662aa return assertion also in display_value; do not assume value and display_value parameters are non-NULL --- diff --git a/util_saml.cpp b/util_saml.cpp index 245cafd..d02fa73 100644 --- a/util_saml.cpp +++ b/util_saml.cpp @@ -283,7 +283,11 @@ gss_eap_saml_assertion_provider::getAttribute(const gss_buffer_t attr, XMLHelper::serialize(m_assertion->marshall((DOMDocument *)NULL), str); - duplicateBuffer(str, value); + if (value != NULL) + duplicateBuffer(str, value); + if (display_value != NULL) + duplicateBuffer(str, display_value); + *more = 0; return true;