From: Sergio Villar Senin Date: Tue, 28 Oct 2008 09:33:35 +0000 (+0000) Subject: * Fixes NB#90984, clean a password before freeing memory X-Git-Tag: git_migration_finished~1093 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=ab12dc0317717c5e60c3309fd9dc8b162efd9cb2;hp=f49b0ce9f15db9d9ecfc6b09ec24b017a2d0fcaf * Fixes NB#90984, clean a password before freeing memory pmo-trunk-r6174 --- diff --git a/src/modest-account-mgr-helpers.c b/src/modest-account-mgr-helpers.c index 3a23316..989663d 100644 --- a/src/modest-account-mgr-helpers.c +++ b/src/modest-account-mgr-helpers.c @@ -33,6 +33,7 @@ #include #include #include +#include static const gchar * null_means_empty (const gchar * str); @@ -321,8 +322,11 @@ modest_account_mgr_get_server_account_has_password (ModestAccountMgr *self, cons TRUE /* server account */); if (password && strlen (password)) { result = TRUE; - } + /* Clean password */ + bzero (password, strlen (password)); + } + g_free (password); return result; }