提交 21076f61 编写于 作者: S Simon Glass 提交者: Wolfgang Denk

Fix bad padding of bootp request packet

This seems to pad to one byte longer than required
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 f16b608a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册