* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk

check.
This commit is contained in:
Vladimir Serbinenko 2014-05-12 10:01:48 +02:00
parent 4b8b9135f1
commit 480c89858e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
check.
2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.

View file

@ -835,7 +835,7 @@ grub_pubkey_open (grub_file_t io, const char *filename)
if (!sec)
return io;
if (io->device->disk && io->device->disk->id == GRUB_DISK_DEVICE_MEMDISK_ID)
if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
return io;
fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
if (!fsuf)