Fix fixes a hang when parsing the vif2 parameter.
According to the manpage subsequent calls to strtok() must use
NULL in the string parameter to keep the iteration going.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
init_net2_info(net2, d_config->num_vif2s);
- for (p = strtok(buf2, ","); p; p = strtok(buf2, ",")) {
+ for (p = strtok(buf2, ","); p; p = strtok(NULL, ",")) {
while (isblank(*p))
p++;
if (!strncmp("front_mac=", p, 10)) {