From 0fe0fa9aa2e887335dc28cdfec55226c5ad31755 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 29 Jan 2004 05:18:33 +0000 Subject: zero out passwd/user/host before freeing them. 2004-01-29 Not Zed * camel-url.c (camel_url_free): zero out passwd/user/host before freeing them. svn path=/trunk/; revision=24509 --- camel/ChangeLog | 5 +++++ camel/camel-url.c | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * camel-url.c (camel_url_free): zero out passwd/user/host before + freeing them. + 2004-01-28 Jeffrey Stedfast * 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); -- cgit