diff options
-rw-r--r-- | boot/pxe_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index c613818d0b3..27243138176 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -1368,7 +1368,10 @@ static int parse_pxefile_top(struct pxe_context *ctx, char *p, unsigned long bas break; case T_PROMPT: - eol_or_eof(&p); + err = parse_integer(&p, &cfg->prompt); + // Do not fail if prompt configuration is undefined + if (err < 0) + eol_or_eof(&p); break; case T_EOL: |