diff options
| author | Simeon Simeonov | 2018-03-18 17:07:51 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-03-18 17:07:51 +0100 |
| commit | 0a708b4e41e80263f8c8e4a5a399c69cec1608c6 (patch) | |
| tree | 12017f84acb912e4410c31f2b4c75b8fd11a9898 /src/inputdialog.c | |
| parent | c94746703a3e0b59372b3bbf9355112c6a85d2dc (diff) | |
Use the mpes1: - tag for passwords encrypted with master password
Diffstat (limited to 'src/inputdialog.c')
| -rw-r--r-- | src/inputdialog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputdialog.c b/src/inputdialog.c index d17b852..340e488 100644 --- a/src/inputdialog.c +++ b/src/inputdialog.c | |||
| @@ -180,12 +180,13 @@ gchar *input_dialog_set_new_password(guint max_attempts) | |||
| 180 | _("Input password"), | 180 | _("Input password"), |
| 181 | _("Confirm new password"), | 181 | _("Confirm new password"), |
| 182 | NULL); | 182 | NULL); |
| 183 | if (strcmp(pass1, pass2) == 0) { | 183 | |
| 184 | /* TODO: clear before free? */ | 184 | if (pass1 != NULL && pass2 != NULL && strcmp(pass1, pass2) == 0) { |
| 185 | /* TODO: clear before free? */ | ||
| 185 | g_free(pass2); | 186 | g_free(pass2); |
| 186 | break; | 187 | break; |
| 187 | } | 188 | } |
| 188 | /* TODO: clear before free? */ | 189 | /* TODO: clear before free? */ |
| 189 | g_free(pass2); | 190 | g_free(pass2); |
| 190 | g_free(pass1); | 191 | g_free(pass1); |
| 191 | pass1 = NULL; | 192 | pass1 = NULL; |
