mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 18:51:20 +00:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user