]> git.proxmox.com Git - efi-boot-shim.git/commit - netboot.c
Correctly reject bad tftp addresses earlier, rather than later.
authorPeter Jones <pjones@redhat.com>
Thu, 2 Oct 2014 05:01:54 +0000 (01:01 -0400)
committerPeter Jones <pjones@redhat.com>
Thu, 2 Oct 2014 05:01:54 +0000 (01:01 -0400)
commit159609ee4eab766673606f5a4e122c78dea390b3
tree021cc8bff63dc217ef9328ca7a7bcc1c3c2b31b1
parent7d953d6722ee9d2d1e21104bae41d60629332140
Correctly reject bad tftp addresses earlier, rather than later.

This check is for end == NULL but was meant to be *end == '\0'.  Without
this change, we'll pass a plausibly bad address (i.e. one with no ']' at
the end) to Mtftp(... READ_FILE ...), which should fail correctly, but
our error messaging will be inconsistent.

Signed-off-by: Peter Jones <pjones@redhat.com>
netboot.c