boot: pxe: Prevent evaluation of uninitialised variable
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 30 Jun 2025 11:57:10 +0000 (12:57 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jul 2025 00:15:20 +0000 (18:15 -0600)
commitc3b43eeaead77beef53a224c7d13346a0462b34d
tree8e2a3f60594928b801a0f01e6634a99949638aa5
parent0ffd456516b5f0c126c9705d6b2368a45ee2353f
boot: pxe: Prevent evaluation of uninitialised variable

In the case where parse_sliteral returns an error then label_name
will not have been assigned to. In order to prevent evaluating
label_name in this case add a check for the return value of parse_sliteral.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
boot/pxe_utils.c