discover/network: Fix incorrect udhcpc command if we have no platform definition
[petitboot] / discover / network.c
index 60d1f6e0f4e1790ba4b2bb2b18bd3a7b81efe70b..36807f0aecbd9881ef015b1a182f2091aabac60e 100644 (file)
@@ -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);