diff --git a/ChangeLog b/ChangeLog index 1fea2d500..9488c1da3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-21 Vladimir Serbinenko + + * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size. + 2012-06-21 Vladimir Serbinenko * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c index 04fdd57de..5c43a908e 100644 --- a/grub-core/net/bootp.c +++ b/grub-core/net/bootp.c @@ -494,7 +494,7 @@ grub_cmd_bootp (struct grub_command *cmd __attribute__ ((unused)), if (!ifaces[j].prev) continue; - nb = grub_netbuff_alloc (sizeof (*pack)); + nb = grub_netbuff_alloc (sizeof (*pack) + 64 + 128); if (!nb) { grub_netbuff_free (nb);