]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: lwip/wget: correct SERVER_NAME_SIZE
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 8 Nov 2024 17:45:26 +0000 (18:45 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 18 Nov 2024 19:32:12 +0000 (13:32 -0600)
commit2071583c8f5bae130e0fbf3aea658b378266a58d
tree758c397576abd15564fff463615ff8b0d1eec6da
parent0e6432e19f9c812b4986ca7fd8e6db9fd2c199d3
net: lwip/wget: correct SERVER_NAME_SIZE

The maximum length of a domain name is 253 as defined in RFC 1035.
So SERVER_NAME_SIZE should be 254 including NUL.

Fixes: 3c656c928bd7 ("net: lwip: add wget command")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
net/lwip/wget.c