diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-29 13:18:33 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-29 13:18:33 +0800 |
commit | 0fe0fa9aa2e887335dc28cdfec55226c5ad31755 (patch) | |
tree | e298806be0e22803a632c216a861f348cf4b72d0 | |
parent | a21eb658b6f8ddef4cd99e21997411c7643ae7b8 (diff) | |
download | gsoc2013-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
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-url.c | 6 |
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); |