]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxe] Check for a valid PXE network device when applicable
authorMichael Brown <mcb30@ipxe.org>
Thu, 8 Dec 2011 02:35:23 +0000 (02:35 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 8 Dec 2011 02:35:23 +0000 (02:35 +0000)
commitfaf50e8fa39e4ff3a64418328bedcde6a89a77f2
tree8a765c6d125d1a6eb33ce3786f8fc46e4172b2cc
parent29651e0c020dcf475690fdf24083392f88fcdfb5
[pxe] Check for a valid PXE network device when applicable

Very nasty things can happen if a NULL network device is used.  Check
that pxe_netdev is non-NULL at the applicable entry points, so that
this type of problem gets reported to the caller rather than being
allowed to crash the system.

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