summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.c b/async.c
index e3f5ac3..c27e012 100644
--- a/async.c
+++ b/async.c
@@ -395,7 +395,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
cb->pending_subs -= 1;
}
- memcpy(dstcb,dictGetEntryVal(de),sizeof(*dstcb));
+ memcpy(dstcb,cb,sizeof(*dstcb));
/* If this is an unsubscribe message, remove it. */
if (strcasecmp(stype+pvariant,"unsubscribe") == 0) {