diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-06-02 14:12:09 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-06-02 14:12:09 +0000 |
commit | 0099e66541566ba8da4462f15da3679b63b93e4e (patch) | |
tree | a7d420c7adb46321194312d2cd63a533a4f20405 /lasso | |
parent | 37906371a83080c0230c8a47889899ec9eff2e27 (diff) | |
download | lasso-0099e66541566ba8da4462f15da3679b63b93e4e.tar.gz lasso-0099e66541566ba8da4462f15da3679b63b93e4e.tar.xz lasso-0099e66541566ba8da4462f15da3679b63b93e4e.zip |
*** empty log message ***
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/xml/xml.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index b53d9a2c..83b686e0 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -751,6 +751,8 @@ lasso_node_impl_get_child(LassoNode *node, child = xmlSecFindNode(node->private->node, name, lassoSamlProtocolHRef); if (child == NULL) child = xmlSecFindNode(node->private->node, name, lassoSoapEnvHRef); + if (child == NULL) + child = xmlSecFindNode(node->private->node, name, lassoMetadataHRef); } if (child != NULL) return (lasso_node_new_from_xmlNode(child)); @@ -767,10 +769,12 @@ lasso_node_impl_get_child_content(LassoNode *node, g_return_val_if_fail (name != NULL, NULL); LassoNode *child = lasso_node_get_child(node, name, href); - xmlChar *content; + xmlChar *content = NULL; - content = lasso_node_get_content(child); - lasso_node_destroy(child); + if (child != NULL) { + content = lasso_node_get_content(child); + lasso_node_destroy(child); + } return (content); } |