mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-27 12:57:13 +00:00
Fix bad padding of bootp request packet
This seems to pad to one byte longer than required Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f16b608ae7
commit
21076f61c7
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ static int DhcpExtended (u8 * e, int message_type, IPaddr_t ServerID, IPaddr_t R
|
||||||
|
|
||||||
/* Pad to minimal length */
|
/* Pad to minimal length */
|
||||||
#ifdef CONFIG_DHCP_MIN_EXT_LEN
|
#ifdef CONFIG_DHCP_MIN_EXT_LEN
|
||||||
while ((e - start) <= CONFIG_DHCP_MIN_EXT_LEN)
|
while ((e - start) < CONFIG_DHCP_MIN_EXT_LEN)
|
||||||
*e++ = 0;
|
*e++ = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue