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>
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);