improve robustness of IPv4 receiving code
This commit is contained in:
parent
1367c143dd
commit
5438143da6
2 changed files with 81 additions and 11 deletions
|
@ -781,6 +781,12 @@ receive_packets (struct grub_net_card *card)
|
|||
break;
|
||||
}
|
||||
grub_net_recv_ethernet_packet (nb, card);
|
||||
if (grub_errno)
|
||||
{
|
||||
grub_dprintf ("net", "error receiving: %d: %s\n", grub_errno,
|
||||
grub_errmsg);
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
}
|
||||
}
|
||||
grub_print_error ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue