simplify
Co-authored-by: Oran Agra <oran@redislabs.com>
This commit is contained in:
parent
456c347d45
commit
c07d3bd8dd
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user