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)); }