pxelinux: cleaner test for OACK trailing null bytes
authorH. Peter Anvin <hpa@zytor.com>
Tue, 9 Jun 2009 14:29:13 +0000 (07:29 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 9 Jun 2009 14:29:13 +0000 (07:29 -0700)
commit1feb9b05ea0b9690a5e5af8b5919d63d6979a2eb
tree2832fc3b3b7d70d98b9a1a33bf4a28599560eb81
parent6e969f3b4359125780868d9747bc59bbeee86a9e
pxelinux: cleaner test for OACK trailing null bytes

Instead of looking for a string of null bytes at the end of the OACK
string, simply abort parsing if we run into a null byte where an
option is expected; either we are seeing junk at the end of the
packet, or we are hopelessly confused about how to make sense of the
rest of the packet -- in either case, ignoring is the "liberal"
option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/pxelinux.asm