summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-20 17:18:14 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-20 17:18:14 +0000
commit836bafd13b0e1caca671dc8dd5eb9725a53b9b8e (patch)
treed51df00d294583f3bf076a795cc94ffdffcd3fc1
parent87a72095def16a51a6b42a1a6a667d3b4b0f40a2 (diff)
Removed 2 compilation warnings
-rw-r--r--lasso/Attic/protocols/authn_response.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lasso/Attic/protocols/authn_response.c b/lasso/Attic/protocols/authn_response.c
index d67fb6c6..8acfb4f5 100644
--- a/lasso/Attic/protocols/authn_response.c
+++ b/lasso/Attic/protocols/authn_response.c
@@ -53,11 +53,12 @@ xmlChar *
lasso_authn_response_get_status(LassoAuthnResponse *response) {
LassoNode *status_code;
- status_code = lasso_node_get_child(response, "StatusCode", NULL);
+ status_code = lasso_node_get_child(LASSO_NODE(response), "StatusCode", NULL);
if (status_code != NULL) {
return lasso_node_get_attr_value(status_code, "Value");
}
else {
+ debug(ERROR, "No StatusCode element found in AuthnResponse.\n");
return (NULL);
}
}
@@ -143,7 +144,7 @@ lasso_authn_response_new(char *providerID,
}
/* Status Code */
- lasso_authn_response_set_status(response, lassoSamlStatusCodeSuccess);
+ lasso_authn_response_set_status(LASSO_AUTHN_RESPONSE(response), lassoSamlStatusCodeSuccess);
return(response);
}