diff options
author | guybe7 <guy.benoish@redislabs.com> | 2021-04-16 15:56:38 +0200 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2021-07-21 21:07:02 +0300 |
commit | fe417b06d670562bfcf5d3ac2e7a6f8d4f13d7bf (patch) | |
tree | 2338c406dbafb4e766b49bc6cb6bc9700bb88f25 | |
parent | ea0a37643245ab3171ddf50292ad21ec5742626c (diff) | |
download | redis-fe417b06d670562bfcf5d3ac2e7a6f8d4f13d7bf.tar.gz |
ReplicationCron: Prevent invalid access to freed pointer (#8799)
Fixes #8797
(cherry picked from commit a60016e0619d489f1c282aad6acd36f9d44e3459)
-rw-r--r-- | src/replication.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c index c2f6d4468..a691f753b 100644 --- a/src/replication.c +++ b/src/replication.c @@ -3221,6 +3221,7 @@ void replicationCron(void) { serverLog(LL_WARNING, "Disconnecting timedout replica (streaming sync): %s", replicationGetSlaveName(slave)); freeClient(slave); + continue; } } /* We consider disconnecting only diskless replicas because disk-based replicas aren't fed @@ -3233,6 +3234,7 @@ void replicationCron(void) { serverLog(LL_WARNING, "Disconnecting timedout replica (full sync): %s", replicationGetSlaveName(slave)); freeClient(slave); + continue; } } } |