From 2153394bc646c6f2d2c8610b8245694a6ed1a263 Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Tue, 11 May 2021 06:08:40 -0700 Subject: [PATCH] add missing container close for attribute path and attribute path list (#6641) --- src/app/ReadClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ReadClient.cpp b/src/app/ReadClient.cpp index e080f3eea66c73..3ff2d1c01226c9 100644 --- a/src/app/ReadClient.cpp +++ b/src/app/ReadClient.cpp @@ -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());