summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-09-04 08:42:13 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-14 18:35:45 (GMT)
commit5070a06a9a7256ea66a49b534f734abc79ac100e (patch)
tree70e4ab035d87411b6d9f4db614421bc59da82468
parent50b5cdac871e9af45b10cf8a548c1d1db290dfeb (diff)
downloadlasso-5070a06a9a7256ea66a49b534f734abc79ac100e.zip
lasso-5070a06a9a7256ea66a49b534f734abc79ac100e.tar.gz
lasso-5070a06a9a7256ea66a49b534f734abc79ac100e.tar.bz2
xml: fix parsing of saml:AuthnContext (fixes #25640)
Decl/DeclRef are alternatives, when matching a Decl we should jump over the DeclRef.
-rw-r--r--lasso/xml/saml-2.0/saml2_authn_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/saml-2.0/saml2_authn_context.c b/lasso/xml/saml-2.0/saml2_authn_context.c
index 5b7c498..e9ba4b0 100644
--- a/lasso/xml/saml-2.0/saml2_authn_context.c
+++ b/lasso/xml/saml-2.0/saml2_authn_context.c
@@ -61,7 +61,7 @@
static struct XmlSnippet schema_snippets[] = {
{ "AuthnContextClassRef", SNIPPET_CONTENT | SNIPPET_OPTIONAL | SNIPPET_JUMP_ON_MISS | SNIPPET_JUMP_3,
G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextClassRef), NULL, NULL, NULL},
- { "AuthnContextDecl", SNIPPET_NODE | SNIPPET_OPTIONAL | SNIPPET_JUMP_ON_MISS | SNIPPET_JUMP_4,
+ { "AuthnContextDecl", SNIPPET_NODE | SNIPPET_OPTIONAL | SNIPPET_JUMP_ON_MATCH | SNIPPET_JUMP_4,
G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextDecl), NULL, NULL, NULL},
{ "AuthnContextDeclRef", SNIPPET_CONTENT | SNIPPET_OPTIONAL | SNIPPET_JUMP | SNIPPET_JUMP_3,
G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextDeclRef), NULL, NULL, NULL},