Fix duplicated CLIENT SETNAME reply.
Happened when we set the name to "" to cancel the name. Was introduced during the RESP3 refactoring. See #6036.
This commit is contained in:
parent
faea46710c
commit
6e4f70b817
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user