mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
ask protover for authentication
Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
@@ -2769,6 +2769,11 @@ void helloCommand(client *c) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ver && next_arg < c->argc) {
|
||||
addReplyError(c,"Authentication needs to provide an protocol version");
|
||||
return;
|
||||
}
|
||||
|
||||
for (int j = next_arg; j < c->argc; j++) {
|
||||
int moreargs = (c->argc-1) - j;
|
||||
const char *opt = c->argv[j]->ptr;
|
||||
|
||||
Reference in New Issue
Block a user