* grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
OOM check. * grub-core/normal/term.c (read_terminal_list): Likewise.
This commit is contained in:
parent
774683685f
commit
e11645f434
3 changed files with 8 additions and 2 deletions
|
@ -136,7 +136,7 @@ read_crypto_list (const char *prefix)
|
|||
}
|
||||
|
||||
cur->name = grub_strdup (name);
|
||||
if (! name)
|
||||
if (! cur->name)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
grub_free (cur);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue