Fix crash when chaining brpoplpush with other blocking commands.

This commit is contained in:
Hampus Wessman 2011-09-07 19:08:48 +02:00
parent b56567017d
commit c47d152c8d

View 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();