mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fixed missing c->bufpos reset in luaRedisGenericCommand().
Bug introduced when adding a fast path to avoid copying the reply buffer for small replies that fit into the client static buffer.
This commit is contained in:
parent
c49955fd77
commit
3318b74705
@ -312,6 +312,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
|
||||
* the client buffer directly. */
|
||||
c->buf[c->bufpos] = '\0';
|
||||
reply = c->buf;
|
||||
c->bufpos = 0;
|
||||
} else {
|
||||
reply = sdsnewlen(c->buf,c->bufpos);
|
||||
c->bufpos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user