Skip to content

Commit

Permalink
add missing container close for attribute path and attribute path list (
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored and pull[bot] committed Aug 3, 2021
1 parent ff81e85 commit 2153394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/ReadClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ CHIP_ERROR ReadClient::SendReadRequest(NodeId aNodeId, Transport::AdminId aAdmin
err = CHIP_ERROR_INVALID_ARGUMENT;
ExitNow();
}
attributePathBuilder.EndOfAttributePath();
SuccessOrExit(err = attributePathBuilder.GetError());
}
attributePathListBuilder.EndOfAttributePathList();
SuccessOrExit(err = attributePathListBuilder.GetError());
}

request.EndOfReadRequest();
SuccessOrExit(err = request.GetError());

Expand Down

0 comments on commit 2153394

Please sign in to comment.