From 4cc1ffd17439db6e0b97b010ad00043d7509f246 Mon Sep 17 00:00:00 2001 From: Cristian Bulacu <127317648+Cristib05@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:34:49 +0300 Subject: [PATCH] [dns-client] Initialize mSendLink structure in Client constructor (#10840) Signed-off-by: Cristian Bulacu --- src/core/net/dns_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/net/dns_client.cpp b/src/core/net/dns_client.cpp index 61695dc4ee4..8e182df16c8 100644 --- a/src/core/net/dns_client.cpp +++ b/src/core/net/dns_client.cpp @@ -753,6 +753,9 @@ Client::Client(Instance &aInstance) static_assert(kServiceQuerySrv == 3, "kServiceQuerySrv value is not correct"); static_assert(kServiceQueryTxt == 4, "kServiceQuerySrv value is not correct"); #endif +#if OPENTHREAD_CONFIG_DNS_CLIENT_OVER_TCP_ENABLE + ClearAllBytes(mSendLink); +#endif } Error Client::Start(void)