Skip to content

Commit

Permalink
[dns-client] Initialize mSendLink structure in Client constructor (op…
Browse files Browse the repository at this point in the history
…enthread#10840)

Signed-off-by: Cristian Bulacu <[email protected]>
Cristib05 authored Oct 15, 2024
1 parent b0790b8 commit 4cc1ffd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/net/dns_client.cpp
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4cc1ffd

Please sign in to comment.