struct discover_boot_option *opt = ctx->parser_info;
struct pb_url *url;
+ if (!name)
+ return;
+
if (streq(name, "LABEL")) {
if (opt)
pxe_finish(ctx);
opt = discover_boot_option_create(ctx->dc, ctx->dc->device);
ctx->parser_info = opt;
- opt->option->device_id = ctx->dc->device->device->id;
opt->option->name = talloc_strdup(opt, value);
opt->option->id = talloc_asprintf(opt, "%s@%p",
- opt->option->device_id, opt);
+ ctx->dc->device->device->id, opt);
return;
}