提交 49128f0b 编写于 作者: P Pieter Noordhuis

Fix bug in gluing a deferred multi bulk length to the next reply chunk

上级 3ab20376
......@@ -253,9 +253,9 @@ void setDeferredMultiBulkLength(redisClient *c, void *node, long length) {
if (ln->next != NULL) {
next = listNodeValue(ln->next);
/* Only glue when the next node is an sds */
/* Only glue when the next node is non-NULL (an sds in this case) */
if (next->ptr != NULL) {
len->ptr = sdscat(len->ptr,next->ptr);
len->ptr = sdscatlen(len->ptr,next->ptr,sdslen(next->ptr));
listDelNode(c->reply,ln->next);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册