ask protover for authentication

Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
xhe 2020-12-24 19:23:30 +08:00
parent 4e36925c66
commit 955e00fbec

View File

@ -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;