Old form of CLIENT KILL should still allow suicide.

This commit is contained in:
antirez 2014-06-24 12:49:18 +02:00
parent e21e0ba3dc
commit 46319094db

View File

@ -1362,6 +1362,7 @@ void clientCommand(redisClient *c) {
if (c->argc == 3) {
/* Old style syntax: CLIENT KILL <addr> */
addr = c->argv[2]->ptr;
skipme = 0; /* With the old form, you can kill yourself. */
} else if (c->argc > 3) {
int i = 2; /* Next option index. */