commit
b97f2fa47e
4 changed files with 25 additions and 5 deletions
|
@ -63,10 +63,13 @@ grub_machine_get_bootlocation (char **device, char **path)
|
|||
if (!*device && grub_efi_net_config)
|
||||
grub_efi_net_config (image->device_handle, device, path);
|
||||
|
||||
/* Get the directory. */
|
||||
p = grub_strrchr (*path, '/');
|
||||
if (p)
|
||||
*p = '\0';
|
||||
if (*path)
|
||||
{
|
||||
/* Get the directory. */
|
||||
p = grub_strrchr (*path, '/');
|
||||
if (p)
|
||||
*p = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -205,7 +205,7 @@ grub_net_recv_icmp6_packet (struct grub_net_buff *nb,
|
|||
if (ttl != 0xff)
|
||||
break;
|
||||
nbh = (struct neighbour_solicit *) nb->data;
|
||||
err = grub_netbuff_pull (nb, sizeof (struct router_adv));
|
||||
err = grub_netbuff_pull (nb, sizeof (*nbh));
|
||||
if (err)
|
||||
{
|
||||
grub_netbuff_free (nb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue