From 44a0efc180269500dc19454ad603876c1124fa28 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 21 Jun 2012 22:08:33 +0200 Subject: [PATCH] * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size. --- ChangeLog | 4 ++++ grub-core/net/bootp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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);