diff options
Diffstat (limited to 'src/inputdialog.c')
| -rw-r--r-- | src/inputdialog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inputdialog.c b/src/inputdialog.c index 340e488..2510bbb 100644 --- a/src/inputdialog.c +++ b/src/inputdialog.c | |||
| @@ -44,6 +44,7 @@ | |||
| 44 | #include "filesel.h" | 44 | #include "filesel.h" |
| 45 | #include "prefs_common.h" | 45 | #include "prefs_common.h" |
| 46 | #include "gtkutils.h" | 46 | #include "gtkutils.h" |
| 47 | #include "masterpassword.h" | ||
| 47 | #include "utils.h" | 48 | #include "utils.h" |
| 48 | 49 | ||
| 49 | #define DIALOG_WIDTH 420 | 50 | #define DIALOG_WIDTH 420 |
| @@ -182,11 +183,12 @@ gchar *input_dialog_set_new_password(guint max_attempts) | |||
| 182 | NULL); | 183 | NULL); |
| 183 | 184 | ||
| 184 | if (pass1 != NULL && pass2 != NULL && strcmp(pass1, pass2) == 0) { | 185 | if (pass1 != NULL && pass2 != NULL && strcmp(pass1, pass2) == 0) { |
| 185 | /* TODO: clear before free? */ | 186 | cleanse_buffer(pass2, strlen(pass2)); |
| 186 | g_free(pass2); | 187 | g_free(pass2); |
| 187 | break; | 188 | break; |
| 188 | } | 189 | } |
| 189 | /* TODO: clear before free? */ | 190 | cleanse_buffer(pass1, strlen(pass1)); |
| 191 | cleanse_buffer(pass2, strlen(pass2)); | ||
| 190 | g_free(pass2); | 192 | g_free(pass2); |
| 191 | g_free(pass1); | 193 | g_free(pass1); |
| 192 | pass1 = NULL; | 194 | pass1 = NULL; |
