diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-15 10:37:38 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-15 10:37:38 +0000 |
commit | bf323d00118a9e7284fec268de4da6de6c84291c (patch) | |
tree | e0ffc398653b5ef5c3734f61b00fad35463df748 | |
parent | b4c6e69ee1cf5627b10053ca42ecbf301b23b00c (diff) | |
download | lasso-bf323d00118a9e7284fec268de4da6de6c84291c.tar.gz lasso-bf323d00118a9e7284fec268de4da6de6c84291c.tar.xz lasso-bf323d00118a9e7284fec268de4da6de6c84291c.zip |
ID-WSF 2.0: fix bad conditionnal in lasso_idwsf2_discovery_process_metadata_register_response_msg
* lasso/id-wsf-2.0/discovery.c:
fix check in
lasso_idwsf2_discovery_process_metadata_register_response_msg
fix duplication of service metadatas inside private list of service
metadatas.
-rw-r--r-- | lasso/id-wsf-2.0/discovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lasso/id-wsf-2.0/discovery.c b/lasso/id-wsf-2.0/discovery.c index 613ec287..d79f7d0b 100644 --- a/lasso/id-wsf-2.0/discovery.c +++ b/lasso/id-wsf-2.0/discovery.c @@ -1082,7 +1082,7 @@ lasso_idwsf2_discovery_process_metadata_register_response_msg(LassoIdWsf2Discove LASSO_IS_IDWSF2_DISCO_SVC_MD_REGISTER_RESPONSE(response), LASSO_PROFILE_ERROR_INVALID_RESPONSE); lasso_check_good_rc(lasso_idwsf2_discovery_status2rc(response->Status)); - goto_cleanup_if_fail_with_rc(g_list_length(response->SvcMDID) != + goto_cleanup_if_fail_with_rc(g_list_length(response->SvcMDID) == g_list_length(request->SvcMD), LASSO_PROFILE_ERROR_INVALID_RESPONSE); /* Check IDs */ i = response->SvcMDID; @@ -1099,7 +1099,6 @@ lasso_idwsf2_discovery_process_metadata_register_response_msg(LassoIdWsf2Discove while (i && j) { lasso_assign_string(((LassoIdWsf2DiscoSvcMetadata*)j->data)->svcMDID, i->data); - lasso_list_add_gobject(discovery->private_data->metadatas, request->SvcMD); i = i->next; j = j->next; } |