diff --git a/src/core/thread/network_diagnostic.cpp b/src/core/thread/network_diagnostic.cpp index 4012f3ac0..5dac32781 100644 --- a/src/core/thread/network_diagnostic.cpp +++ b/src/core/thread/network_diagnostic.cpp @@ -452,7 +452,8 @@ otError NetworkDiagnostic::FillRequestedTlvs(const Message & aRequest, #endif default: - ExitNow(error = OT_ERROR_PARSE); + // Skip unrecognized TLV type. + break; } offset += sizeof(type);