mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix GEORADIUS COUNT option arity checks.
This commit is contained in:
parent
19f6ab50c3
commit
319d180136
@ -481,7 +481,7 @@ void georadiusGeneric(client *c, int type) {
|
||||
sort = SORT_ASC;
|
||||
} else if (!strcasecmp(arg, "desc")) {
|
||||
sort = SORT_DESC;
|
||||
} else if (!strcasecmp(arg, "count") && remaining > 0) {
|
||||
} else if (!strcasecmp(arg, "count") && (i+1) < remaining) {
|
||||
if (getLongLongFromObjectOrReply(c, c->argv[base_args+i+1],
|
||||
&count, NULL) != C_OK) return;
|
||||
if (count <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user