diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:10:52 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:10:52 +0000 |
| commit | 33ac0485ad3f0d600ccceb1a2056b9423daecaef (patch) | |
| tree | dc338bdf5afe6d9ae65b065ae8171c190125c57d | |
| parent | b573de5a673b28ca9c958214b7de178f97996c1f (diff) | |
| download | lasso-33ac0485ad3f0d600ccceb1a2056b9423daecaef.tar.gz lasso-33ac0485ad3f0d600ccceb1a2056b9423daecaef.tar.xz lasso-33ac0485ad3f0d600ccceb1a2056b9423daecaef.zip | |
* lasso/id-wsf/wsf_profile.c: In lasso_wsf_profile_set_security_mech_id if
security_mech_id is NULL, default to LASSO_SECURITY_MECH_NULL.
In lasso_wsf_profile_init_soap_request increment ref count of the argument
when new reference are created.
| -rw-r--r-- | lasso/id-wsf/wsf_profile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lasso/id-wsf/wsf_profile.c b/lasso/id-wsf/wsf_profile.c index 24177bb4..8d9e57c2 100644 --- a/lasso/id-wsf/wsf_profile.c +++ b/lasso/id-wsf/wsf_profile.c @@ -336,6 +336,10 @@ lasso_wsf_profile_set_security_mech_id(LassoWsfProfile *profile, { g_return_val_if_invalid_param(WSF_PROFILE, profile, LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ); + + if (security_mech_id == NULL) { + security_mech_id = LASSO_SECURITY_MECH_NULL; + } if (lasso_security_mech_id_is_saml_authentication(security_mech_id) || lasso_security_mech_id_is_null_authentication(security_mech_id)) { g_assign_string(profile->private_data->security_mech_id, security_mech_id); @@ -632,8 +636,8 @@ lasso_wsf_profile_init_soap_request(LassoWsfProfile *profile, LassoNode *request } envelope = lasso_wsf_profile_build_soap_envelope_internal(NULL, providerID); profile->soap_envelope_request = envelope; - envelope->Body->any = g_list_append(envelope->Body->any, request); - profile->request = request; + g_list_add_gobject(envelope->Body->any, request); + g_assign_gobject(profile->request, request); return lasso_wsf_profile_comply_with_security_mechanism(profile); } |
