mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00: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) {
|
if (strcmp(c->argv[i]->ptr,"$") == 0) {
|
||||||
o = lookupKeyRead(c->db,key);
|
o = lookupKeyRead(c->db,key);
|
||||||
if (checkType(c,o,OBJ_STREAM)) goto cleanup;
|
if (o && checkType(c,o,OBJ_STREAM)) goto cleanup;
|
||||||
if (o) {
|
if (o) {
|
||||||
stream *s = o->ptr;
|
stream *s = o->ptr;
|
||||||
ids[id_idx] = s->last_id;
|
ids[id_idx] = s->last_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user