From: antirez Date: Wed, 25 Jan 2012 15:59:32 +0000 (+0100) Subject: Fixed another possible bug in cluster.c found by clang --analyze. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/4e97c2c71a3c511165c966769f51d2255d7a7b33 Fixed another possible bug in cluster.c found by clang --analyze. --- 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) {