Skip to content

Commit baa1d7a

Browse files
[door-lock] Fix the crash when providing null-ed user index (#30276)
to the HandleLocalLockOperationError method We cannot assume that the valid user index is provided in case of the invalid credential. In fact, the spec in 5.2.5.4.4 says that UserIndex SHALL be null if there is no user id that can be determined for the given operation source. Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
1 parent 33441cb commit baa1d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/clusters/door-lock-server/door-lock-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void DoorLockServer::HandleLocalLockOperationError(chip::EndpointId endpointId,
211211

212212
HandleWrongCodeEntry(endpointId);
213213

214-
ChipLogProgress(Zcl, "Handling a local Lock Operation Error: [endpoint=%d, user=%d]", endpointId, userId.Value());
214+
ChipLogProgress(Zcl, "Handling a local Lock Operation Error: [endpoint=%d]", endpointId);
215215
}
216216

217217
bool DoorLockServer::HandleWrongCodeEntry(chip::EndpointId endpointId)

0 commit comments

Comments
 (0)