From 46275eef3de4e025b5657e67e142fc58125779be Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 13 Apr 2018 15:24:01 +0200 Subject: Add support for auto-unloading av the master password --- libsylph/prefs_account.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsylph/prefs_account.c') diff --git a/libsylph/prefs_account.c b/libsylph/prefs_account.c index fc4d8f1..54cbc89 100644 --- a/libsylph/prefs_account.c +++ b/libsylph/prefs_account.c @@ -239,6 +239,7 @@ void prefs_account_read_config(PrefsAccount *ac_prefs, const gchar *label) label); tmp_str = ac_prefs->passwd; ac_prefs->passwd = encrypt_with_master_password(ac_prefs->passwd); + cleanse_buffer(tmp_str, strlen(tmp_str)); g_free(tmp_str); } @@ -251,6 +252,7 @@ void prefs_account_read_config(PrefsAccount *ac_prefs, const gchar *label) tmp_str = ac_prefs->smtp_passwd; ac_prefs->smtp_passwd = encrypt_with_master_password( ac_prefs->smtp_passwd); + cleanse_buffer(tmp_str, strlen(tmp_str)); g_free(tmp_str); } -- cgit v1.3