mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Streams: fix XREAD missing check for NULL object.
This commit is contained in:
parent
8d8755c7b5
commit
67eeeb0b10
@ -1171,7 +1171,7 @@ void xreadCommand(client *c) {
|
||||
|
||||
if (strcmp(c->argv[i]->ptr,"$") == 0) {
|
||||
o = lookupKeyRead(c->db,key);
|
||||
if (checkType(c,o,OBJ_STREAM)) goto cleanup;
|
||||
if (o && checkType(c,o,OBJ_STREAM)) goto cleanup;
|
||||
if (o) {
|
||||
stream *s = o->ptr;
|
||||
ids[id_idx] = s->last_id;
|
||||
|
Loading…
Reference in New Issue
Block a user