summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8c430d0)
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
if (platform && platform->dhcp_arch_id != 0xffff)
snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id);
else
process = process_create(interface);
process = process_create(interface);