mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Sentinel: fix access to NULL link->cc in releaseInstanceLink()
This commit is contained in:
parent
87b6013adb
commit
b44c37482c
@ -968,7 +968,7 @@ instanceLink *releaseInstanceLink(instanceLink *link, sentinelRedisInstance *ri)
|
||||
redisAssert(link->refcount > 0);
|
||||
link->refcount--;
|
||||
if (link->refcount != 0) {
|
||||
if (ri) {
|
||||
if (ri && ri->link->cc) {
|
||||
/* This instance may have pending callbacks in the hiredis async
|
||||
* context, having as 'privdata' the instance that we are going to
|
||||
* free. Let's rewrite the callback list, directly exploiting
|
||||
|
Loading…
Reference in New Issue
Block a user