diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-07-11 13:03:26 -0700 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2014-07-11 13:03:26 -0700 |
commit | ce8a68b1fdf5c26d06d2e2972109881bd16e6856 (patch) | |
tree | 773fec4d49ad9bf7b16f00c7d1d97c07cdc60c2e /src/object.c | |
parent | 6382936ebcffb893e6f404bdafb058ed3150f8ec (diff) | |
download | redis-ce8a68b1fdf5c26d06d2e2972109881bd16e6856.tar.gz |
Fix OBJECT arity
Previously, the command definition for the OBJECT command specified
a minimum of two args (and that it was variadic), which meant that
if you sent this:
OBJECT foo
When cluster was enabled, it would result in an assertion/SEGFAULT
when Redis was attempting to extract keys.
It appears that OBJECT is not variadic, and only ever takes 3 args.
https://gist.github.com/michael-grunder/25960ce1508396d0d36a
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index 501dcc32f..2cf9e04fd 100644 --- a/src/object.c +++ b/src/object.c @@ -696,7 +696,7 @@ robj *objectCommandLookupOrReply(redisClient *c, robj *key, robj *reply) { } /* Object command allows to inspect the internals of an Redis Object. - * Usage: OBJECT <verb> ... arguments ... */ + * Usage: OBJECT <refcount|encoding|idletime> <key> */ void objectCommand(redisClient *c) { robj *o; |