diff options
| author | Michael Brown | 2008-10-22 22:18:15 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-10-22 23:07:13 +0200 |
| commit | 612f4e7a990272f67dc1461e6cf1c5ad3b83dd14 (patch) | |
| tree | 7c033dd0697d112086a8dfe43708f25e8e69d5d1 /src/drivers/net/phantom | |
| parent | [tftp] Add EUNIQ_xx values to differentiate the many EINVAL errors (diff) | |
| download | ipxe-612f4e7a990272f67dc1461e6cf1c5ad3b83dd14.tar.gz ipxe-612f4e7a990272f67dc1461e6cf1c5ad3b83dd14.tar.xz ipxe-612f4e7a990272f67dc1461e6cf1c5ad3b83dd14.zip | |
[settings] Avoid returning uninitialised data on error in fetch_xxx_setting()
Callers (e.g. usr/autoboot.c) may not check the return values from
fetch_xxx_setting(), assuming that in error cases the returned setting
value will be "empty" (for some sensible value of "empty").
In particular, if the DHCP server did not specify a next-server
address, this would result in gPXE using uninitialised data for the
TFTP server IP address.
Diffstat (limited to 'src/drivers/net/phantom')
0 files changed, 0 insertions, 0 deletions
