summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 22:51:43 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2012-05-05 22:51:43 +0200
commit73a8c1faad7956940efc7c4ffab2e7b04813f8e3 (patch)
treea3e0320d06d176653a5ea430c119e31e26ed932d
parentd90b4b4b5cdb998de9d464588ae0672a6720c0f6 (diff)
downloadlasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.tar.gz
lasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.tar.xz
lasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.zip
[xml] fix typos
-rw-r--r--lasso/xml/tools.c8
-rw-r--r--lasso/xml/xml.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index 36c76a05..83db2d2c 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -1016,7 +1016,7 @@ lasso_node_build_deflated_query(LassoNode *node)
xmlnode = lasso_node_get_xmlNode(node, FALSE);
result = lasso_xmlnode_build_deflated_query(xmlnode);
- xmlFreeNode(node);
+ xmlFreeNode(xmlnode);
return result;
}
@@ -1086,7 +1086,7 @@ lasso_xmlnode_build_deflated_query(xmlNode *xmlnode)
}
void
-lasso_get_query_string_param_value(const char *qs, const char *param_key, char **value,
+lasso_get_query_string_param_value(const char *qs, const char *param_key, const char **value,
size_t *length)
{
size_t key_size = strlen(param_key);
@@ -1098,13 +1098,13 @@ lasso_get_query_string_param_value(const char *qs, const char *param_key, char *
qs[key_size] == '=')
{
char *end;
- *value = qs[key_size+1];
+ *value = &qs[key_size+1];
end = strchr(*value, '&');
if (! end) {
end = strchr(*value, ';');
}
if (end) {
- *length = (ptrdiff_t)(end - *value)
+ *length = (ptrdiff_t)(end - *value);
} else {
*length = strlen(*value);
}
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index 88e0e290..9cbf197b 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -3436,7 +3436,7 @@ lasso_node_export_to_saml2_query(LassoNode *node, const char *param_name, const
char *value = NULL, *query = NULL, *signed_query = NULL, *result = NULL;
xmlChar *encoded_param = NULL;
- value = lasso_node_build_deflated_query(xmlnode);
+ value = lasso_node_build_deflated_query(node);
if (! value)
goto cleanup;
encoded_param = xmlURIEscapeStr(BAD_CAST param_name, NULL);