[network-diagnostic] skip unrecognized TLV type in FillRequestedTlvs() (#4992)

This commit is contained in:
Abtin Keshavarzian
2020-05-21 12:05:13 -07:00
committed by Jonathan Hui
parent ec1ba12dfd
commit 582c2c136a
+2 -1
View File
@@ -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);