Commit 1d05b53f authored by Hampus Wessman's avatar Hampus Wessman Committed by antirez
Browse files

Fix crash when chaining brpoplpush with other blocking commands.

parent e1f01c9b
...@@ -638,7 +638,7 @@ void lremCommand(redisClient *c) { ...@@ -638,7 +638,7 @@ void lremCommand(redisClient *c) {
void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey, robj *dstobj, robj *value) { void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey, robj *dstobj, robj *value) {
robj *aux; robj *aux;
if (!handleClientsWaitingListPush(c,dstkey,value)) { if (!handleClientsWaitingListPush(origclient,dstkey,value)) {
/* Create the list if the key does not exist */ /* Create the list if the key does not exist */
if (!dstobj) { if (!dstobj) {
dstobj = createZiplistObject(); dstobj = createZiplistObject();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment