aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-29 13:18:33 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-29 13:18:33 +0800
commit0fe0fa9aa2e887335dc28cdfec55226c5ad31755 (patch)
treee298806be0e22803a632c216a861f348cf4b72d0 /camel/camel-url.c
parenta21eb658b6f8ddef4cd99e21997411c7643ae7b8 (diff)
downloadgsoc2013-evolution-0fe0fa9aa2e887335dc28cdfec55226c5ad31755.tar.gz
gsoc2013-evolution-0fe0fa9aa2e887335dc28cdfec55226c5ad31755.tar.zst
gsoc2013-evolution-0fe0fa9aa2e887335dc28cdfec55226c5ad31755.zip
zero out passwd/user/host before freeing them.
2004-01-29 Not Zed <NotZed@Ximian.com> * camel-url.c (camel_url_free): zero out passwd/user/host before freeing them. svn path=/trunk/; revision=24509
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c6
1 files changed, 6 insertions, 0 deletions
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);