]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/net/net.c (grub_cmd_deladdr): Fix index.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 21 Feb 2012 15:16:45 +0000 (16:16 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 21 Feb 2012 15:16:45 +0000 (16:16 +0100)
Reported by: Seth Goldberg

ChangeLog
grub-core/net/net.c

index 4854630eda147bcd5d8059ee5939c50c5442597a..61bc66a1d680ac40c4603fcf248f824594ac9473 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-21  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
+       Reported by: Seth Goldberg
+
 2012-02-21  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
index b749e607d46ff3b0dcf5349e5ff63c54a6d0714a..5f3967bdf6298cfa8cea3fdb6ec68cfaff2385f1 100644 (file)
@@ -658,7 +658,7 @@ grub_cmd_deladdr (struct grub_command *cmd __attribute__ ((unused)),
     return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("one argument expected"));
 
   FOR_NET_NETWORK_LEVEL_INTERFACES (inter)
-    if (grub_strcmp (inter->name, args[1]) == 0)
+    if (grub_strcmp (inter->name, args[0]) == 0)
       break;
   if (inter == NULL)
     return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("address not found"));