summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/login.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-28 16:31:33 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-28 16:31:33 +0000
commitcc70d59cfeea5c35618369b81c5bdd83dd0cc3be (patch)
tree2470186d3a2ca76f7df992cb0270d3f33b40b9b6 /lasso/id-ff/login.c
parent229977a6f532a83935dd92729a8c223af8cbe9c6 (diff)
downloadlasso-cc70d59cfeea5c35618369b81c5bdd83dd0cc3be.tar.gz
lasso-cc70d59cfeea5c35618369b81c5bdd83dd0cc3be.tar.xz
lasso-cc70d59cfeea5c35618369b81c5bdd83dd0cc3be.zip
Atrributes server & user are now copied in lasso_login_new()
and lasso_login_new_from_dump() methods
Diffstat (limited to 'lasso/id-ff/login.c')
-rw-r--r--lasso/id-ff/login.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c
index e765147c..a60dff4b 100644
--- a/lasso/id-ff/login.c
+++ b/lasso/id-ff/login.c
@@ -882,7 +882,7 @@ lasso_login_process_response_msg(LassoLogin *login,
static void
lasso_login_dispose(LassoLogin *login)
{
- if (login->private->dispose_has_run) {
+ if (login->private->dispose_has_run == TRUE) {
return;
}
login->private->dispose_has_run = TRUE;
@@ -965,7 +965,7 @@ lasso_login_new(LassoServer *server)
LassoLogin *login;
login = LASSO_LOGIN(g_object_new(LASSO_TYPE_LOGIN,
- "server", server,
+ "server", lasso_server_copy(server),
NULL));
return (login);
@@ -981,8 +981,8 @@ lasso_login_new_from_dump(LassoServer *server,
gchar *protocolProfile;
login = LASSO_LOGIN(g_object_new(LASSO_TYPE_LOGIN,
- "server", server,
- "user", user,
+ "server", lasso_server_copy(server),
+ "user", lasso_user_copy(user),
NULL));
node_dump = lasso_node_new_from_dump(dump);