]> git.saurik.com Git - redis.git/commitdiff
Fixed another possible bug in cluster.c found by clang --analyze.
authorantirez <antirez@gmail.com>
Wed, 25 Jan 2012 15:59:32 +0000 (16:59 +0100)
committerantirez <antirez@gmail.com>
Wed, 25 Jan 2012 15:59:36 +0000 (16:59 +0100)
src/cluster.c

index 2b3ebe4d07da8d4b75a66288519f2c085e5faf32..85cb119811008fd770a46f2a46118089a6192b64 100644 (file)
@@ -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) {