talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1707a23f562534e9b9d2a092e28e451baf8acff2
parent e5bb832c169c89c8cba735e25f639774eccf7324
Author: Colin Leroy <colin@colino.net>
Date:   Thu, 11 Feb 2016 11:22:47 +0100

Forgot to memset. We should add an helper function for this.

Diffstat:
Msrc/prefs_gtk.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/prefs_gtk.c b/src/prefs_gtk.c @@ -690,6 +690,9 @@ void prefs_set_entry(PrefParam *pparam) decrypted_pass = password_decrypt(*str, NULL); gtk_entry_set_text(GTK_ENTRY(*pparam->widget), (decrypted_pass != NULL ? decrypted_pass : "")); + if (decrypted_pass != NULL) { + memset(decrypted_pass, 0, strlen(decrypted_pass)); + } g_free(decrypted_pass); break; default: