summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-06-24 12:49:18 +0200
committerantirez <antirez@gmail.com>2014-06-24 12:49:28 +0200
commit46319094dba97e1e5627ad52687d8d9dab26c070 (patch)
tree99cddbcacc6199b6cf5cce3171c6b54573a26d12
parente21e0ba3dcd67d9048ecea9be5398b2a791e7bc5 (diff)
downloadredis-46319094dba97e1e5627ad52687d8d9dab26c070.tar.gz
Old form of CLIENT KILL should still allow suicide.
-rw-r--r--src/networking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index 78d180867..7b6f46b34 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -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. */