]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 21 Jun 2012 20:08:33 +0000 (22:08 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 21 Jun 2012 20:08:33 +0000 (22:08 +0200)
ChangeLog
grub-core/net/bootp.c

index 1fea2d500033d9bfdf64ffa633ada827c0c82192..9488c1da380fb73e4e30843d9e4fc469bfb19243 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
index 04fdd57de2247edf2c7f05fb85fd94dbddb4c34c..5c43a908e6c4d9e982101dfc5b15c5a3c3824243 100644 (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);