* 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:
Nickolai Zeldovich 2013-03-07 08:41:27 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 774683685f
commit e11645f434
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
* grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
OOM check.
* grub-core/normal/term.c (read_terminal_list): Likewise.
2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
Lift up core size limits on some platforms. Fix potential memory

View file

@ -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);

View file

@ -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);