From 9d9f5fafe1ab15683601c03b14c35fe6a405ba45 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 4 Jul 2013 15:25:51 +0800 Subject: [PATCH] discover/pxe-parser: All options are name value pairs Abort the pair parse if we don't have both a name and a value. Signed-off-by: Jeremy Kerr --- discover/pxe-parser.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2