summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2024-11-08 18:45:26 +0100
committerTom Rini <[email protected]>2024-11-18 13:32:12 -0600
commit2071583c8f5bae130e0fbf3aea658b378266a58d (patch)
tree758c397576abd15564fff463615ff8b0d1eec6da
parent0e6432e19f9c812b4986ca7fd8e6db9fd2c199d3 (diff)
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 <[email protected]> Reviewed-by: Jerome Forissier <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
-rw-r--r--net/lwip/wget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/lwip/wget.c b/net/lwip/wget.c
index 26086edd192..e85d57bc1dd 100644
--- a/net/lwip/wget.c
+++ b/net/lwip/wget.c
@@ -15,7 +15,7 @@
#include <time.h>
#include <dm/uclass.h>
-#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)