From af0250d9195c9bbbd30b7c56e3adf6f9fd9a21ee Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 21 Feb 2012 16:16:45 +0100 Subject: [PATCH] * grub-core/net/net.c (grub_cmd_deladdr): Fix index. Reported by: Seth Goldberg --- ChangeLog | 5 +++++ grub-core/net/net.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4854630ed..61bc66a1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-21 Vladimir Serbinenko + + * grub-core/net/net.c (grub_cmd_deladdr): Fix index. + Reported by: Seth Goldberg + 2012-02-21 Vladimir Serbinenko * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled. diff --git a/grub-core/net/net.c b/grub-core/net/net.c index b749e607d..5f3967bdf 100644 --- a/grub-core/net/net.c +++ b/grub-core/net/net.c @@ -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"));