]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxe] Avoid touching fields that may not exist in PXENV_UNDI_GET_NIC_TYPE
authorMichael Brown <mcb30@ipxe.org>
Sat, 4 Dec 2010 21:32:00 +0000 (21:32 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 9 Dec 2010 13:09:49 +0000 (13:09 +0000)
commit0620429785750c0ad8742adb3df527df77354b12
tree4fe0e5df4ee277f9de7112cfb9a6ca88fb7cf17b
parenta4bb95599cfafe131ec8d63acd6d144a9b831a35
[pxe] Avoid touching fields that may not exist in PXENV_UNDI_GET_NIC_TYPE

Earlier versions of the PXE specification do not have the SubVendor_ID
and SubDevice_ID fields, and some NBPs may not provide space for them.
Avoid overwriting the contents of these fields, just in case.

This is similar to the problem with the BufferLimit field in
PXENV_GET_CACHED_INFO.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pxe/pxe_undi.c