From 343745f2189374156601d2a6d77477d1a97a357f Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 29 May 2020 03:40:52 -0400 Subject: [PATCH] Cluster crash Former-commit-id: f25c405ad2a8004b79a816072cb011c1dc2407d5 --- src/cluster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cluster.cpp b/src/cluster.cpp index 6d6f2be2e..1ebaed262 100644 --- a/src/cluster.cpp +++ b/src/cluster.cpp @@ -2235,6 +2235,8 @@ void clusterWriteHandler(connection *conn) { void clusterLinkConnectHandler(connection *conn) { clusterLink *link = (clusterLink*)connGetPrivateData(conn); clusterNode *node = link->node; + if (node == nullptr) + return; // we're about to be freed /* Check if connection succeeded */ if (connGetState(conn) != CONN_STATE_CONNECTED) {