Skip to content

Commit f75a11d

Browse files
nealjackkartben
authored andcommitted
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>
1 parent 022962c commit f75a11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/mgmt/hawkbit/hawkbit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static bool hawkbit_initialized;
7878
static struct hawkbit_config {
7979
int32_t action_id;
8080
#ifdef CONFIG_HAWKBIT_SET_SETTINGS_RUNTIME
81-
char server_addr[DNS_MAX_NAME_SIZE + 1];
81+
char server_addr[CONFIG_DNS_RESOLVER_MAX_QUERY_LEN + 1];
8282
char server_port[sizeof(STRINGIFY(__UINT16_MAX__))];
8383
#ifndef CONFIG_HAWKBIT_DDI_NO_SECURITY
8484
char ddi_security_token[DDI_SECURITY_TOKEN_SIZE + 1];

0 commit comments

Comments
 (0)