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 <neal@blueirislabs.com>
This commit is contained in:
Neal Jackson 2025-05-01 12:25:06 -06:00 committed by Benjamin Cabé
parent 022962c90d
commit f75a11d22a

View File

@ -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];