Commit d1f22eac authored by Madelyn Olson's avatar Madelyn Olson Committed by antirez
Browse files

Give an error message if you specify redirect twice

parent 762fbcb6
......@@ -2233,6 +2233,13 @@ NULL
if (!strcasecmp(c->argv[j]->ptr,"redirect") && moreargs) {
j++;
if (redir != 0) {
addReplyError(c,"A client can only redirect to a single "
"other client");
zfree(prefix);
return;
}
if (getLongLongFromObjectOrReply(c,c->argv[j],&redir,NULL) !=
C_OK)
{
......
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