summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/pxe-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c
index c300b69..67cb788 100644
--- a/discover/pxe-parser.c
+++ b/discover/pxe-parser.c
@@ -21,6 +21,9 @@ static void pxe_process_pair(struct conf_context *ctx,
struct discover_boot_option *opt = ctx->parser_info;
struct pb_url *url;
+ if (!name)
+ return;
+
if (streq(name, "LABEL")) {
if (opt)
pxe_finish(ctx);
OpenPOWER on IntegriCloud