]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/bootp.c
Fix bad padding of bootp request packet
[people/ms/u-boot.git] / net / bootp.c
index 1a717867d48885b479050909b43d1cba0b372fe7..87b027e8fa65b03e126992a3a44971e7842c24ba 100644 (file)
@@ -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