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

Commit ec11225

Browse files
authored
Merge pull request #447 from openweave/bug/emargolis/case-auth-fix-weave-error
Fixed Weave Error Code.
2 parents de3ca7f + 455f064 commit ec11225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adaptations/device-layer/CASEAuth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ WEAVE_ERROR CASEAuthDelegate::GetNodePrivateKey(bool isInitiator, const uint8_t
147147
SuccessOrExit(err);
148148

149149
// Fail if no private key has been configured.
150-
VerifyOrExit(privKeyLen != 0, err = WEAVE_ERROR_CERT_NOT_FOUND);
150+
VerifyOrExit(privKeyLen != 0, err = WEAVE_ERROR_KEY_NOT_FOUND);
151151

152152
// Create a temporary buffer to hold the private key.
153153
mPrivKeyBuf = (uint8_t *)MemoryAlloc(privKeyLen);

0 commit comments

Comments
 (0)