From: Simon Glass Date: Wed, 2 Feb 2011 23:03:28 +0000 (-0800) Subject: Fix bad padding of bootp request packet X-Git-Tag: v2011.06-rc1~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21076f61c7ec6f562d9b72cc9c713e5bd2236e05;p=kernel%2Fu-boot.git Fix bad padding of bootp request packet This seems to pad to one byte longer than required Signed-off-by: Simon Glass --- 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