From: Heinrich Schuchardt Date: Fri, 8 Nov 2024 17:45:26 +0000 (+0100) Subject: net: lwip/wget: correct SERVER_NAME_SIZE X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=2071583c8f5bae130e0fbf3aea658b378266a58d;p=u-boot.git 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 Reviewed-by: Jerome Forissier Reviewed-by: Ilias Apalodimas --- diff --git a/net/lwip/wget.c b/net/lwip/wget.c index 26086edd19..e85d57bc1d 100644 --- a/net/lwip/wget.c +++ b/net/lwip/wget.c @@ -15,7 +15,7 @@ #include #include -#define SERVER_NAME_SIZE 200 +#define SERVER_NAME_SIZE 254 #define HTTP_PORT_DEFAULT 80 #define HTTPS_PORT_DEFAULT 443 #define PROGRESS_PRINT_STEP_BYTES (100 * 1024)