aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2007-07-30 18:13:06 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2007-07-30 18:13:06 +0800
commit393003baeef02a588e64b5fd6e9c41e69d127a6e (patch)
tree2addbf21be2735819aa7ea35afeb7eb038b892c7 /calendar
parenta37c55760048564773e65bc3b94e9c52406ca403 (diff)
downloadgsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar.gz
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar.bz2
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar.lz
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar.xz
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.tar.zst
gsoc2013-evolution-393003baeef02a588e64b5fd6e9c41e69d127a6e.zip
Fixes a memory corruption.
svn path=/trunk/; revision=33899
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/common/authentication.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index ee2bda838a..433fd19c4b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-30 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes a memory corruption.
+ * common/authentication.c: (auth_func_cb): Use
+ e_source_get_duped_property.
+
2007-07-30 Milan Crha <mcrha@redhat.com>
** Fix for bug #343716
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index 69d0e9544c..5073e2e5b1 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -36,21 +36,21 @@ static char *
auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_data)
{
gboolean remember;
- char *password;
+ char *password, *auth_domain;
ESource *source;
- const gchar *auth_domain, *component_name;
+ const gchar *component_name;
source = e_cal_get_source (ecal);
- auth_domain = e_source_get_property (source, "auth-domain");
+ auth_domain = e_source_get_duped_property (source, "auth-domain");
component_name = auth_domain ? auth_domain : "Calendar";
password = e_passwords_get_password (component_name, key);
-
+
if (!password)
password = e_passwords_ask_password (_("Enter password"), component_name, key, prompt,
E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET|E_PASSWORDS_ONLINE,
&remember,
NULL);
-
+ g_free (auth_domain);
return password;
}