From 6e4f70b8170e14ba8a2ada2fde4a75e073effee3 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
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;
     }