From: Jeremy Kerr Date: Thu, 4 Jul 2013 07:25:51 +0000 (+0800) Subject: discover/pxe-parser: All options are name value pairs X-Git-Tag: v1.0.0~556 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=9d9f5fafe1ab15683601c03b14c35fe6a405ba45 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 --- 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);