Commit 09ab5591 authored by antirez's avatar antirez
Browse files

Fixed a problem in the script engine that crashed the server if the reply was...

Fixed a problem in the script engine that crashed the server if the reply was not stored just int the static buffer of the client structure.
parent 0d916763
......@@ -184,7 +184,7 @@ int luaRedisCommand(lua_State *lua) {
while(listLength(c->reply)) {
robj *o = listNodeValue(listFirst(c->reply));
sdscatlen(reply,o->ptr,sdslen(o->ptr));
reply = sdscatlen(reply,o->ptr,sdslen(o->ptr));
listDelNode(c->reply,listFirst(c->reply));
}
redisProtocolToLuaType(lua,reply);
......
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