after freeing for safety.
+2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
+ after freeing for safety.
+
2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
if (type != GRUB_FSHELP_DIR)
{
free_node (currnode);
+ currnode = 0;
return grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("not a directory"));
}
if (! found)
{
free_node (currnode);
+ currnode = 0;
if (grub_errno)
return grub_errno;
{
free_node (currnode);
free_node (oldnode);
+ currnode = 0;
return grub_error (GRUB_ERR_SYMLINK_LOOP,
N_("too deep nesting of symlinks"));
}
symlink = read_symlink (currnode);
free_node (currnode);
+ currnode = 0;
if (!symlink)
{