Fix pb-discover segfaults caused by list corruption.
[petitboot] / discover / pxe-parser.c
index fd8b8e866d012ac4baeb8d6a772bd90eadbb9a03..470dd83f08ad71590339156ac1bc10c853152532 100644 (file)
@@ -41,6 +41,7 @@ static void pxe_finish(struct conf_context *conf)
                if (info->proxy)
                        info->opt->proxy = talloc_strdup(info->opt, info->proxy);
                discover_context_add_boot_option(conf->dc, info->opt);
+               info->opt = NULL;
        }
 }