diff options
author | antirez <antirez@gmail.com> | 2019-10-01 10:38:56 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-10-01 10:38:56 +0200 |
commit | 3281ebb495f0c7fb14bf28df3534d800e0c7d6a1 (patch) | |
tree | e2d5b5d45fd7b92ea067d1872abbf26e67bccf2c /src/geo.c | |
parent | beebb3c013ef37a90cd9910a0c4077f6fed6abf3 (diff) | |
download | redis-3281ebb495f0c7fb14bf28df3534d800e0c7d6a1.tar.gz |
Fix GEORADIUS replies broken after RESP3 introduction.
This commit fixes #6417.
Diffstat (limited to 'src/geo.c')
-rw-r--r-- | src/geo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -466,7 +466,7 @@ void georadiusGeneric(client *c, int flags) { /* Look up the requested zset */ robj *zobj = NULL; - if ((zobj = lookupKeyReadOrReply(c, key, shared.null[c->resp])) == NULL || + if ((zobj = lookupKeyReadOrReply(c, key, shared.emptyarray)) == NULL || checkType(c, zobj, OBJ_ZSET)) { return; } @@ -566,7 +566,7 @@ void georadiusGeneric(client *c, int flags) { /* If no matching results, the user gets an empty reply. */ if (ga->used == 0 && storekey == NULL) { - addReplyNull(c); + addReplyNullArray(c); geoArrayFree(ga); return; } |