Fix crash in client unblock command

Former-commit-id: 7cd779d304d75833ca891b4fe3b7e1cfdabf6fa8
This commit is contained in:
John Sully 2020-05-10 22:08:50 -04:00
parent 03b811b13c
commit 73c436dba2

View File

@ -2779,6 +2779,7 @@ NULL
!= C_OK) return;
struct client *target = lookupClientByID(id);
if (target && target->flags & CLIENT_BLOCKED) {
std::unique_lock<fastlock> ul(target->lock);
if (unblock_error)
addReplyError(target,
"-UNBLOCKED client unblocked via CLIENT UNBLOCK");