* grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-06-21 22:08:33 +02:00
parent 531e2241a6
commit 44a0efc180
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2012-06-21 Vladimir Serbinenko <phcoder@gmail.com> 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the

View file

@ -494,7 +494,7 @@ grub_cmd_bootp (struct grub_command *cmd __attribute__ ((unused)),
if (!ifaces[j].prev) if (!ifaces[j].prev)
continue; continue;
nb = grub_netbuff_alloc (sizeof (*pack)); nb = grub_netbuff_alloc (sizeof (*pack) + 64 + 128);
if (!nb) if (!nb)
{ {
grub_netbuff_free (nb); grub_netbuff_free (nb);