mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* 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:
1 parent
774683685f
commit
e11645f434
3 files changed
+8
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -389,7 +389,7 @@ read_terminal_list (const char *prefix)
|
||||
}
|
||||
|
||||
cur->name = grub_strdup (name);
|
||||
if (! name)
|
||||
if (! cur->name)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
grub_free (cur);
|
||||
|
||||
Reference in new issue
Block a user