Skip to content

Commit

Permalink
Merge pull request #992 from vojtechtrefny/master_luks-add-missing-pr…
Browse files Browse the repository at this point in the history
…ogress

Fix missing progress initialization in bd_crypto_luks_add_key
  • Loading branch information
vojtechtrefny authored Jan 10, 2024
2 parents c78a646 + 6154941 commit b318f6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,11 @@ gboolean bd_crypto_luks_add_key (const gchar *device, BDCryptoKeyslotContext *co
gint ret = 0;
guint64 progress_id = 0;
GError *l_error = NULL;
gchar *msg = NULL;

msg = g_strdup_printf ("Started adding key to the LUKS device '%s'", device);
progress_id = bd_utils_report_started (msg);
g_free (msg);

ret = crypt_init (&cd, device);
if (ret != 0) {
Expand Down

0 comments on commit b318f6e

Please sign in to comment.