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

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

No files matched your search

+1 -1
View File
@@ -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);