Co-authored-by: Oran Agra <oran@redislabs.com>
This commit is contained in:
xhe 2020-12-24 17:03:36 +08:00 committed by GitHub
parent 991d84a506
commit b46a3530ae

View File

@ -2761,6 +2761,7 @@ NULL
/* HELLO [protocol-version] [AUTH <user> <password>] [SETNAME <name>] */
void helloCommand(client *c) {
long long ver = 0;
int next_arg = 1;
if (c->argc >= 2 && getLongLongFromObject(c->argv[1],&ver) == C_OK &&
(ver < 2 || ver > 3)) {