]> git.saurik.com Git - redis.git/commitdiff
Fix crash when chaining brpoplpush with other blocking commands.
authorHampus Wessman <hampus.wessman@gmail.com>
Wed, 7 Sep 2011 17:08:48 +0000 (19:08 +0200)
committerHampus Wessman <hampus.wessman@gmail.com>
Wed, 7 Sep 2011 17:08:48 +0000 (19:08 +0200)
src/t_list.c

index 5427293f962a7d821933da970772209929a9e6f3..279bcaf59c6d8dad06aee71e643c84a79ac04425 100644 (file)
@@ -643,7 +643,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();