From d329031fad1ac8c5d2d0c58a17d08a2de98b7b15 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 25 Jan 2012 16:59:32 +0100 Subject: [PATCH] Fixed another possible bug in cluster.c found by clang --analyze. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 2b3ebe4d..85cb1198 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -613,7 +613,7 @@ int clusterProcessPacket(clusterLink *link) { } } /* Update our info about the node */ - link->node->pong_received = time(NULL); + if (link->node) link->node->pong_received = time(NULL); /* Update master/slave info */ if (sender) {