[ncp] fix handling of (parse) error in UNSOL_UPDATE_FILTER set handler (#2397)

This commit is contained in:
Abtin Keshavarzian
2017-12-07 18:20:09 +00:00
committed by Jonathan Hui
parent 6f584b2b54
commit c1cb99f14d
+1 -1
View File
@@ -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<spinel_prop_key_t>(propKey), true));
}