From c1cb99f14d9a91f1db8e9a09eaff6b20620454be Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 7 Dec 2017 10:20:09 -0800 Subject: [PATCH] [ncp] fix handling of (parse) error in UNSOL_UPDATE_FILTER set handler (#2397) --- src/ncp/ncp_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index 968902f58..8e566dcb9 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -1685,7 +1685,7 @@ otError NcpBase::SetPropertyHandler_UNSOL_UPDATE_FILTER(void) while (mDecoder.GetRemainingLengthInStruct() > 0) { - SuccessOrExit(mDecoder.ReadUintPacked(propKey)); + SuccessOrExit(error = mDecoder.ReadUintPacked(propKey)); IgnoreReturnValue(mChangedPropsSet.EnablePropertyFilter(static_cast(propKey), true)); }