From 5cc052230355b61442fa911b5fc4150ea098b4de Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Thu, 11 Oct 2018 21:46:47 +0800 Subject: [PATCH] Streams: panic if streamID invalid after check, should not be possible. --- src/t_stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/t_stream.c b/src/t_stream.c index 16817c21f..43d3e4da6 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -2138,7 +2138,8 @@ void xclaimCommand(client *c) { for (int j = 5; j <= last_id_arg; j++) { streamID id; unsigned char buf[sizeof(streamID)]; - if (streamParseStrictIDOrReply(c,c->argv[j],&id,0) != C_OK) return; + if (streamParseStrictIDOrReply(c,c->argv[j],&id,0) != C_OK) + serverPanic("StreamID invalid after check. Should not be possible."); streamEncodeID(buf,&id); /* Lookup the ID in the group PEL. */