Fix for the 6.0 branch: https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f