Commit 955e00fb authored by xhe's avatar xhe
Browse files

ask protover for authentication


Signed-off-by: default avatarxhe <xw897002528@gmail.com>
parent 4e36925c
...@@ -2769,6 +2769,11 @@ void helloCommand(client *c) { ...@@ -2769,6 +2769,11 @@ void helloCommand(client *c) {
return; 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++) { for (int j = next_arg; j < c->argc; j++) {
int moreargs = (c->argc-1) - j; int moreargs = (c->argc-1) - j;
const char *opt = c->argv[j]->ptr; const char *opt = c->argv[j]->ptr;
......
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