ask protover for authentication
Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
parent
4e36925c66
commit
955e00fbec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user