summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-05-22 16:03:19 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-06-30 11:32:00 +0800
commita51beb34277a01ca577c35d6a66ceab38e6de67c (patch)
treee089ad42a33fa1c7b50402777c674a32d5262dda /discover
parent8c430d0509a2f1f5dc64de308d1c1d2668d2031b (diff)
downloadtalos-petitboot-a51beb34277a01ca577c35d6a66ceab38e6de67c.tar.gz
talos-petitboot-a51beb34277a01ca577c35d6a66ceab38e6de67c.zip
discover/network: Fix incorrect udhcpc command if we have no platform definition
If we don't have a platform defined, we generate an invalid uchdpc command, as we've NULL-ed out the interface name. This change fixes the no-platform case to terminate *after* the interface name. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/network.c b/discover/network.c
index 60d1f6e..36807f0 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -245,7 +245,7 @@ static void configure_interface_dhcp(struct interface *interface)
if (platform && platform->dhcp_arch_id != 0xffff)
snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id);
else
- argv[11] = NULL;
+ argv[12] = NULL;
process = process_create(interface);
OpenPOWER on IntegriCloud