Skip to content

Commit

Permalink
Fix missing progress initialization in bd_crypto_luks_add_key
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Jan 9, 2024
1 parent c78a646 commit 6154941
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 6154941

Please sign in to comment.