diff --git a/src/core/meshcop/joiner.cpp b/src/core/meshcop/joiner.cpp index 20ce3d098..3455bb683 100644 --- a/src/core/meshcop/joiner.cpp +++ b/src/core/meshcop/joiner.cpp @@ -421,7 +421,8 @@ template <> void Joiner::HandleTmf(Coap::Msg &aMsg) Error error; Dataset::Info datasetInfo; - VerifyOrExit(mState == kStateEntrust && aMsg.IsConfirmable(), error = kErrorDrop); + VerifyOrExit(mState == kStateEntrust && aMsg.IsConfirmable() && aMsg.mMessage.IsLinkSecurityEnabled(), + error = kErrorDrop); LogInfo("Received %s", UriToString()); LogCert("[THCI] direction=recv | type=JOIN_ENT.ntf");