Commit 6e4f70b8 authored by antirez's avatar antirez
Browse files

Fix duplicated CLIENT SETNAME reply.

Happened when we set the name to "" to cancel the name.
Was introduced during the RESP3 refactoring.

See #6036.
parent faea4671
...@@ -1998,7 +1998,6 @@ int clientSetNameOrReply(client *c, robj *name) { ...@@ -1998,7 +1998,6 @@ int clientSetNameOrReply(client *c, robj *name) {
if (len == 0) { if (len == 0) {
if (c->name) decrRefCount(c->name); if (c->name) decrRefCount(c->name);
c->name = NULL; c->name = NULL;
addReply(c,shared.ok);
return C_OK; return C_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment