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 456c347d45
commit c07d3bd8dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {