Explorar o código

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>
Simon Glass %!s(int64=14) %!d(string=hai) anos
pai
achega
21076f61c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/bootp.c

+ 1 - 1
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