X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=net%2Fbootp.c;h=42e14eda417436b0b6ef133055185e2ecb895029;hb=4491327d59179a212e36f1889bd143c99159138b;hp=aa6cdf0a47a5c17a36a711c62e72043890ce2465;hpb=f3c264f9de6a5727c90ecf6d46d4747091c0a57f;p=oweals%2Fu-boot.git diff --git a/net/bootp.c b/net/bootp.c index aa6cdf0a47..42e14eda41 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -673,6 +673,15 @@ static int bootp_extended(u8 *e) *e++ = 255; /* End of the list */ + /* + * If nothing in list, remove it altogether. Some DHCP servers get + * upset by this minor faux pas and do not respond at all. + */ + if (e == start + 3) { + printf("*** Warning: no DHCP options requested\n"); + e -= 3; + } + return e - start; } #endif