diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2012-05-05 22:51:43 +0200 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2012-05-05 22:51:43 +0200 |
commit | 73a8c1faad7956940efc7c4ffab2e7b04813f8e3 (patch) | |
tree | a3e0320d06d176653a5ea430c119e31e26ed932d | |
parent | d90b4b4b5cdb998de9d464588ae0672a6720c0f6 (diff) | |
download | lasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.tar.gz lasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.tar.xz lasso-73a8c1faad7956940efc7c4ffab2e7b04813f8e3.zip |
[xml] fix typos
-rw-r--r-- | lasso/xml/tools.c | 8 | ||||
-rw-r--r-- | lasso/xml/xml.c | 2 |
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); |