diff --git a/src/cli/cli_tcp.cpp b/src/cli/cli_tcp.cpp index d243251a4d4..7471e661aeb 100644 --- a/src/cli/cli_tcp.cpp +++ b/src/cli/cli_tcp.cpp @@ -304,6 +304,8 @@ template <> otError TcpExample::Process(Arg aArgs[]) mbedtls_pk_free(&mPKey); mbedtls_x509_crt_free(&mSrvCert); + + mUseTls = false; } #endif