diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-11-09 09:08:47 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-11-09 09:08:47 +0000 |
commit | 07e1b7c04f5d623fd624640dffe9ce2a02030422 (patch) | |
tree | 9075164bfd0aa136f8a12a8134728420cf60174c /lasso/xml/samlp_response.c | |
parent | 9f1fa16723b0a8f34433b010f4669618e128d0cc (diff) | |
download | lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.gz lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.tar.xz lasso-07e1b7c04f5d623fd624640dffe9ce2a02030422.zip |
return value on init_from_xml; and minor tweaks to code style
Diffstat (limited to 'lasso/xml/samlp_response.c')
-rw-r--r-- | lasso/xml/samlp_response.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lasso/xml/samlp_response.c b/lasso/xml/samlp_response.c index d8bb73d0..c5545702 100644 --- a/lasso/xml/samlp_response.c +++ b/lasso/xml/samlp_response.c @@ -76,13 +76,14 @@ get_xmlNode(LassoNode *node) return xmlnode; } -static void +static int init_from_xml(LassoNode *node, xmlNode *xmlnode) { xmlNode *t; LassoSamlpResponse *response = LASSO_SAMLP_RESPONSE(node); - parent_class->init_from_xml(node, xmlnode); + if (parent_class->init_from_xml(node, xmlnode)) + return -1; t = xmlnode->children; while (t) { @@ -98,6 +99,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode) } t = t->next; } + return 0; } |