From 21076f61c7ec6f562d9b72cc9c713e5bd2236e05 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 2 Feb 2011 15:03:28 -0800 Subject: 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 -- cgit v0.10.2