Fixed another possible bug in cluster.c found by clang --analyze.

This commit is contained in:
antirez 2012-01-25 16:59:32 +01:00
parent 9b810f1cde
commit d329031fad

View 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) {