From 73c436dba28dcfd3cbdd21994bd30d6f4264c890 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 10 May 2020 22:08:50 -0400 Subject: [PATCH] Fix crash in client unblock command Former-commit-id: 7cd779d304d75833ca891b4fe3b7e1cfdabf6fa8 --- src/networking.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/networking.cpp b/src/networking.cpp index 1cb9eade6..6ff41d1ab 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -2779,6 +2779,7 @@ NULL != C_OK) return; struct client *target = lookupClientByID(id); if (target && target->flags & CLIENT_BLOCKED) { + std::unique_lock ul(target->lock); if (unblock_error) addReplyError(target, "-UNBLOCKED client unblocked via CLIENT UNBLOCK");