diff options
author | xhe <xw897002528@gmail.com> | 2020-12-24 17:03:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 17:03:45 +0800 |
commit | 723b4a15a34ce25490882f40ef51b24a5b61304c (patch) | |
tree | cd81edb3dee0ff310f492cdc20035977dec1ace7 /src | |
parent | c07d3bd8dd8ba108f743c09b059f157e9799d5c5 (diff) | |
download | redis-723b4a15a34ce25490882f40ef51b24a5b61304c.tar.gz |
simplify
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/networking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c index 132596f9e..32ffb3ce8 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2763,7 +2763,7 @@ void helloCommand(client *c) { long long ver = 0; int next_arg = 1; - if (c->argc >= 2 && getLongLongFromObject(c->argv[1],&ver) == C_OK && + if (c->argc >= 2 && getLongLongFromObject(c->argv[next_arg++],&ver) == C_OK && (ver < 2 || ver > 3)) { addReplyError(c,"-NOPROTO unsupported protocol version"); return; |