commit | a0978eb9f7519071573b8d47930f8a8f06e5fcac | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Feb 02 15:03:28 2011 -0800 |
committer | Wolfgang Denk <wd@denx.de> | Wed Apr 13 22:25:07 2011 +0200 |
tree | a931f6f03eec52615227670d94cda538c782a019 | |
parent | 1def8a6e56e665d4873ed768eedd64cd243c59da [diff] |
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>
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 @@ /* 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