From 675858f43cfc33216e6b7b9c8a62b826a8a1ef4a Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 13 Jan 2016 09:50:18 +0100 Subject: [PATCH] Fix wrong snippet type (fixes #9616) In elements samlp2:RequestedAuthnContext, Comparison is an attribute, not a text child node. --- lasso/xml/saml-2.0/samlp2_requested_authn_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasso/xml/saml-2.0/samlp2_requested_authn_context.c b/lasso/xml/saml-2.0/samlp2_requested_authn_context.c index b1903597..b0f69d1a 100644 --- a/lasso/xml/saml-2.0/samlp2_requested_authn_context.c +++ b/lasso/xml/saml-2.0/samlp2_requested_authn_context.c @@ -60,7 +60,7 @@ static struct XmlSnippet schema_snippets[] = { { "AuthnContextDeclRef", SNIPPET_LIST_CONTENT, G_STRUCT_OFFSET(LassoSamlp2RequestedAuthnContext, AuthnContextDeclRef), NULL, LASSO_SAML2_ASSERTION_PREFIX, LASSO_SAML2_ASSERTION_HREF }, - { "Comparison", SNIPPET_CONTENT | SNIPPET_OPTIONAL, + { "Comparison", SNIPPET_ATTRIBUTE | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoSamlp2RequestedAuthnContext, Comparison), NULL, NULL, NULL}, {NULL, 0, 0, NULL, NULL, NULL} };