mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Streams: panic if streamID invalid after check, should not be possible.
This commit is contained in:
parent
08ae522ff9
commit
5cc0522303
@ -2138,7 +2138,8 @@ void xclaimCommand(client *c) {
|
|||||||
for (int j = 5; j <= last_id_arg; j++) {
|
for (int j = 5; j <= last_id_arg; j++) {
|
||||||
streamID id;
|
streamID id;
|
||||||
unsigned char buf[sizeof(streamID)];
|
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);
|
streamEncodeID(buf,&id);
|
||||||
|
|
||||||
/* Lookup the ID in the group PEL. */
|
/* Lookup the ID in the group PEL. */
|
||||||
|
Loading…
Reference in New Issue
Block a user