summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampus Wessman <hampus.wessman@gmail.com>2011-09-07 19:08:48 +0200
committerantirez <antirez@gmail.com>2011-09-12 10:05:58 +0200
commit1d05b53fcc0e02d096f5952ae15917e544e01f7c (patch)
treef334f37732a09422b279cb43245eadbbafc15ae4
parente1f01c9b28751d71ba0df682fb0f6b62f4db9191 (diff)
downloadredis-1d05b53fcc0e02d096f5952ae15917e544e01f7c.tar.gz
Fix crash when chaining brpoplpush with other blocking commands.
-rw-r--r--src/t_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_list.c b/src/t_list.c
index b17bfbdc1..a40709cd4 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -638,7 +638,7 @@ void lremCommand(redisClient *c) {
void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey, robj *dstobj, robj *value) {
robj *aux;
- if (!handleClientsWaitingListPush(c,dstkey,value)) {
+ if (!handleClientsWaitingListPush(origclient,dstkey,value)) {
/* Create the list if the key does not exist */
if (!dstobj) {
dstobj = createZiplistObject();