Commit 67eeeb0b authored by antirez's avatar antirez
Browse files

Streams: fix XREAD missing check for NULL object.

parent 8d8755c7
...@@ -1171,7 +1171,7 @@ void xreadCommand(client *c) { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment