Commit f75a11d2 authored by Neal Jackson's avatar Neal Jackson Committed by Benjamin Cabé
Browse files

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: default avatarNeal Jackson <neal@blueirislabs.com>
parent 022962c9
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/mgmt/hawkbit/hawkbit.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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];