Co-authored-by: Oran Agra <oran@redislabs.com>
This commit is contained in:
xhe 2020-12-24 17:03:53 +08:00 committed by GitHub
parent 723b4a15a3
commit 98f39a37fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2769,7 +2769,7 @@ void helloCommand(client *c) {
return;
}
for (int j = !ver ? 1 : 2; j < c->argc; j++) {
for (int j = next_arg; j < c->argc; j++) {
int moreargs = (c->argc-1) - j;
const char *opt = c->argv[j]->ptr;
if (!strcasecmp(opt,"AUTH") && moreargs >= 2) {