diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-22 23:49:29 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-22 23:49:29 +0000 |
| commit | 52e60ecb097216e2deb0eda898d38425ed665a07 (patch) | |
| tree | bf06a5fdcfe36cceb9fc2d1879ed162dd2e2b202 /lasso/xml/lib_logout_request.c | |
| parent | ce3c049c7cc8f10e55ff7b572d6a5b7c03730091 (diff) | |
| download | lasso-52e60ecb097216e2deb0eda898d38425ed665a07.tar.gz lasso-52e60ecb097216e2deb0eda898d38425ed665a07.tar.xz lasso-52e60ecb097216e2deb0eda898d38425ed665a07.zip | |
Rework cleanup handling
* lasso/utils.h:
change 'goto exit' for 'goto cleanup'. rename all goto_exit macros to
goto_cleanup_. rename goto_cleanup_if_fail to
goto_cleanup_if_fail_with_rc and add a
goto_cleanup_if_fail for function which do not return an integer
value. add documentation for goto_cleanup macro family.
* lasso/id-ff/login.c:
* lasso/id-ff/provider.c:
* lasso/id-ff/server.c:
* lasso/id-ff/session.c:
* lasso/id-wsf/discovery.c:
* lasso/id-wsf/wsf_profile.c:
* lasso/saml-2.0/profile.c:
* lasso/utils.h:
* lasso/xml/lib_logout_request.c:
* lasso/xml/tools.c:
* lasso/xml/xml.c:
update name of goto_exit_if_fail macros. rename 'exit' labels to
'cleanup'.
Diffstat (limited to 'lasso/xml/lib_logout_request.c')
| -rw-r--r-- | lasso/xml/lib_logout_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/xml/lib_logout_request.c b/lasso/xml/lib_logout_request.c index f5f6442a..caf41b43 100644 --- a/lasso/xml/lib_logout_request.c +++ b/lasso/xml/lib_logout_request.c @@ -100,7 +100,7 @@ init_from_query(LassoNode *node, char **query_fields) rc = parent_class->init_from_query(node, query_fields); if (! rc) - goto exit; + goto cleanup; if (request->ProviderID == NULL || request->NameIdentifier == NULL || @@ -113,7 +113,7 @@ init_from_query(LassoNode *node, char **query_fields) lasso_assign_string(request->NameIdentifier->Format, "LASSO_SAML2_NAME_IDENTIFIER_FORMAT_UNSPECIFIED"); } - exit: +cleanup: return rc; } |
