From 5268ee292873861ca0ba4f0d3d7990c8da83d4e8 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 27 Mar 2009 15:06:17 +0000 Subject: ID-FF 1.2 Login: Use allocation macros * lasso/id-ff/login.c: (lasso_login_init_authn_request) again a passing by correction, use lasso_assign_string for copying information from the request to the profile object. --- lasso/id-ff/login.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index b39f104a..5144a39e 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -1343,9 +1343,10 @@ lasso_login_init_authn_request(LassoLogin *login, const gchar *remote_providerID request->MinorVersion = 0; } request->IssueInstant = lasso_get_current_time(); - LASSO_LIB_AUTHN_REQUEST(profile->request)->ProviderID = g_strdup( + lasso_assign_string(LASSO_LIB_AUTHN_REQUEST(profile->request)->ProviderID, LASSO_PROVIDER(profile->server)->ProviderID); - LASSO_LIB_AUTHN_REQUEST(profile->request)->RelayState = g_strdup(profile->msg_relayState); + lasso_assign_string(LASSO_LIB_AUTHN_REQUEST(profile->request)->RelayState, + profile->msg_relayState); if (http_method == LASSO_HTTP_METHOD_POST) { request->sign_method = LASSO_SIGNATURE_METHOD_RSA_SHA1; -- cgit