From 582c2c136ad798db0b3d2f0e495b5d620d9bcd0b Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 20 May 2020 13:40:52 -0700 Subject: [PATCH] [network-diagnostic] skip unrecognized TLV type in FillRequestedTlvs() (#4992) --- src/core/thread/network_diagnostic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);