From f75a11d22ae81663ca79a4e7ff5bb85734eb831f Mon Sep 17 00:00:00 2001 From: Neal Jackson Date: Thu, 1 May 2025 12:25:06 -0600 Subject: [PATCH] mgmt: hawkbit: replace DNS_MAX_NAME_SIZE with DNS_RESOLVER_MAX_QUERY_LEN The hawkbit subsystem was erroneously using DNS_MAX_NAME_SIZE as the maximum query length. This limited query strings to only 20 bytes, truncating many domain names. Signed-off-by: Neal Jackson --- subsys/mgmt/hawkbit/hawkbit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/mgmt/hawkbit/hawkbit.c b/subsys/mgmt/hawkbit/hawkbit.c index d5611a5c87c..01091ab0bca 100644 --- a/subsys/mgmt/hawkbit/hawkbit.c +++ b/subsys/mgmt/hawkbit/hawkbit.c @@ -78,7 +78,7 @@ static bool hawkbit_initialized; static struct hawkbit_config { int32_t action_id; #ifdef CONFIG_HAWKBIT_SET_SETTINGS_RUNTIME - char server_addr[DNS_MAX_NAME_SIZE + 1]; + char server_addr[CONFIG_DNS_RESOLVER_MAX_QUERY_LEN + 1]; char server_port[sizeof(STRINGIFY(__UINT16_MAX__))]; #ifndef CONFIG_HAWKBIT_DDI_NO_SECURITY char ddi_security_token[DDI_SECURITY_TOKEN_SIZE + 1];