Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit b84c9e8

Browse files
committed
Static analysis fixes
Change-Id: Ia4ae222821e19b655b13765ebe4b9a7451d71732
1 parent e14a8f1 commit b84c9e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/profiles/data-management/Current/SubscriptionEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ WEAVE_ERROR SubscriptionEngine::ProcessUpdateRequestDataElement(Weave::TLV::TLVR
18791879
if (err == WEAVE_ERROR_TLV_TAG_NOT_FOUND)
18801880
{
18811881
WeaveLogDetail(DataManagement, "Ignoring un-mappable path!");
1882-
err = WEAVE_NO_ERROR;
1882+
// no need to reset the value of err, it is set unconditionally below
18831883
}
18841884
#endif
18851885

src/lib/profiles/security/WeaveCertProvisioning.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ WEAVE_ERROR WeaveCertProvEngine::ProcessGetCertificateResponse(PacketBuffer * ms
336336
relatedCertsLen = writer.GetLengthWritten() - certLen;
337337

338338
err = reader.Next();
339+
VerifyOrExit(err == WEAVE_END_OF_TLV, err = WEAVE_ERROR_UNEXPECTED_TLV_ELEMENT);
339340
}
340341

341342
err = reader.VerifyEndOfContainer();

0 commit comments

Comments
 (0)