Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c1b5220e
Commit
c1b5220e
authored
Feb 16, 2020
by
Madelyn Olson
Browse files
Give an error message if you specify redirect twice
parent
d63a4353
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
c1b5220e
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment