dest->boot_priorities[i].type = src->boot_priorities[i].type;
}
+ if (src->boot_device && strlen(src->boot_device))
+ dest->boot_device = talloc_strdup(dest, src->boot_device);
+ else
+ dest->boot_device = NULL;
+
return dest;
}
pos += 4;
}
+ pos += pb_protocol_serialise_string(pos, config->boot_device);
+
assert(pos <= buf + buf_len);
(void)buf_len;
unsigned int len, i, tmp;
const char *pos;
int rc = -1;
+ char *str;
len = message->payload_len;
pos = message->payload;
config->network.n_dns_servers);
for (i = 0; i < config->network.n_dns_servers; i++) {
- char *tmp;
- if (read_string(config->network.dns_servers, &pos, &len, &tmp))
+ if (read_string(config->network.dns_servers, &pos, &len, &str))
goto out;
- config->network.dns_servers[i] = tmp;
+ config->network.dns_servers[i] = str;
}
if (read_u32(&pos, &len, &config->n_boot_priorities))
config->boot_priorities[i].type = tmp;
}
+ if (read_string(config, &pos, &len, &str))
+ goto out;
+
+ config->boot_device = str;
+
rc = 0;
out: