From a51beb34277a01ca577c35d6a66ceab38e6de67c Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 22 May 2014 16:03:19 +0800 Subject: [PATCH] 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 --- discover/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2