RedisLabs / redis-cluster-proxy

A proxy for Redis clusters.
GNU Affero General Public License v3.0
993 stars 132 forks source link

Fix crash in proxy cluster update #67

Open dacjames opened 4 years ago

dacjames commented 4 years ago

Fixes #66

The problem appears to be that resetCluster does not null cluster->master_names, resulting in a double free when proxy cluster update is called twice.

Calling clusterGetMasterNames was not strictly necessary but it seemed like the right thing to do to ensure the cluster struct is fully recreated by the update.