mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/net/net.c (grub_cmd_deladdr): Fix index.
Reported by: Seth Goldberg
This commit is contained in:
1 parent
aad32b1402
commit
af0250d919
2 files changed
+6
-1
No files matched your search
+1
-1
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user