mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
ReplicationCron: Prevent invalid access to freed pointer (#8799)
Fixes #8797
This commit is contained in:
parent
374401d786
commit
a60016e061
@ -3402,6 +3402,7 @@ void replicationCron(void) {
|
|||||||
serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s",
|
serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s",
|
||||||
replicationGetSlaveName(slave));
|
replicationGetSlaveName(slave));
|
||||||
freeClient(slave);
|
freeClient(slave);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* We consider disconnecting only diskless replicas because disk-based replicas aren't fed
|
/* We consider disconnecting only diskless replicas because disk-based replicas aren't fed
|
||||||
@ -3414,6 +3415,7 @@ void replicationCron(void) {
|
|||||||
serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s",
|
serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s",
|
||||||
replicationGetSlaveName(slave));
|
replicationGetSlaveName(slave));
|
||||||
freeClient(slave);
|
freeClient(slave);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user