From c0d6c9a0c16ea9ea4d2335ebbbc2daad0fa8c33f Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 29 Dec 2019 15:44:59 +0100 Subject: [PATCH] Fix duplicated CLIENT SETNAME reply. Happened when we set the name to "" to cancel the name. Was introduced during the RESP3 refactoring. See #6036. --- src/networking.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index dac45751d..a558ae91a 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1998,7 +1998,6 @@ int clientSetNameOrReply(client *c, robj *name) { if (len == 0) { if (c->name) decrRefCount(c->name); c->name = NULL; - addReply(c,shared.ok); return C_OK; }