aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-url.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index d9308f0c6d..463c818041 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-29 Not Zed <NotZed@Ximian.com>
+
+ * camel-url.c (camel_url_free): zero out passwd/user/host before
+ freeing them.
+
2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-mbox-store.c (rename_folder): Make sure
diff --git a/camel/camel-url.c b/camel/camel-url.c
index 86eb4fa104..cdbccfe14e 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -379,6 +379,12 @@ void
camel_url_free (CamelURL *url)
{
if (url) {
+ if (url->passwd)
+ memset(url->passwd, 0, strlen(url->passwd));
+ if (url->user)
+ memset(url->user, 0, strlen(url->user));
+ if (url->host)
+ memset(url->host, 0, strlen(url->host));
g_free (url->protocol);
g_free (url->user);
g_free (url->authmech);