Forgot to memset. We should add an helper function for this.
authorColin Leroy <colin@colino.net>
Thu, 11 Feb 2016 10:22:47 +0000 (11:22 +0100)
committerColin Leroy <colin@colino.net>
Thu, 11 Feb 2016 10:22:47 +0000 (11:22 +0100)
src/prefs_gtk.c

index f04a5e534442449614121f0f46256205789cb861..3d6ddec987b85cbfa7ef0dafc2444e3400cfc905 100644 (file)
@@ -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: