diff options
author | Simon Glass <sjg@chromium.org> | 2011-02-02 15:03:28 -0800 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-13 22:25:07 +0200 |
commit | 21076f61c7ec6f562d9b72cc9c713e5bd2236e05 (patch) | |
tree | a931f6f03eec52615227670d94cda538c782a019 /net/bootp.c | |
parent | f16b608ae7d0c4611d3a41d2570616a498e64d4c (diff) | |
download | u-boot-imx-21076f61c7ec6f562d9b72cc9c713e5bd2236e05.zip u-boot-imx-21076f61c7ec6f562d9b72cc9c713e5bd2236e05.tar.gz u-boot-imx-21076f61c7ec6f562d9b72cc9c713e5bd2236e05.tar.bz2 |
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>
Diffstat (limited to 'net/bootp.c')
-rw-r--r-- | net/bootp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c index 1a71786..87b027e 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -464,7 +464,7 @@ static int DhcpExtended (u8 * e, int message_type, IPaddr_t ServerID, IPaddr_t R /* Pad to minimal length */ #ifdef CONFIG_DHCP_MIN_EXT_LEN - while ((e - start) <= CONFIG_DHCP_MIN_EXT_LEN) + while ((e - start) < CONFIG_DHCP_MIN_EXT_LEN) *e++ = 0; #endif |