summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/id-ff/user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lasso/id-ff/user.c b/lasso/id-ff/user.c
index 2a0f6329..9f4a9357 100644
--- a/lasso/id-ff/user.c
+++ b/lasso/id-ff/user.c
@@ -275,8 +275,9 @@ lasso_user_get_assertion(LassoUser *user,
assertion = (LassoNode *)g_hash_table_lookup(user->assertions,
remote_providerID);
- if (assertion == NULL)
- return NULL;
+ if (assertion == NULL) {
+ return NULL;
+ }
return(lasso_node_copy(assertion));
}
@@ -306,8 +307,8 @@ lasso_user_get_authentication_method(LassoUser *user,
}
done:
- lasso_node_destroy(assertion);
lasso_node_destroy(as);
+ lasso_node_destroy(assertion);
return (authentication_method);
}