mirror of
https://github.com/fluencelabs/redis
synced 2025-04-10 19:26:04 +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:
parent
0d916763af
commit
09ab5591fa
@ -184,7 +184,7 @@ int luaRedisCommand(lua_State *lua) {
|
|||||||
while(listLength(c->reply)) {
|
while(listLength(c->reply)) {
|
||||||
robj *o = listNodeValue(listFirst(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));
|
listDelNode(c->reply,listFirst(c->reply));
|
||||||
}
|
}
|
||||||
redisProtocolToLuaType(lua,reply);
|
redisProtocolToLuaType(lua,reply);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user