]> git.proxmox.com Git - grub2.git/commitdiff
cryptodisk: Use cipher name instead of object in error message
authorGlenn Washburn <development@efficientek.com>
Fri, 31 Jul 2020 14:33:19 +0000 (09:33 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 18 Sep 2020 20:31:30 +0000 (22:31 +0200)
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/cryptodisk.c

index 1eea4161f4ba3710a8ba4557da564b45b7d9ecea..13af84dd1dd06c551d6a989a9f7a44c8c8eabefa 100644 (file)
@@ -464,8 +464,8 @@ grub_cryptodisk_setcipher (grub_cryptodisk_t crypt, const char *ciphername, cons
       secondary_cipher = grub_crypto_cipher_open (ciph);
       if (!secondary_cipher)
       {
-         ret = grub_error (GRUB_ERR_FILE_NOT_FOUND, "Secondary cipher %s isn't available",
-                           secondary_cipher);
+         ret = grub_error (GRUB_ERR_FILE_NOT_FOUND,
+                           "Secondary cipher %s isn't available", ciphername);
          goto err;
       }
       if (cipher->cipher->blocksize != GRUB_CRYPTODISK_GF_BYTES)