From 520d50ab54024c6ab421d7e36e62ffb7b68bdfe6 Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Fri, 5 Jan 2007 23:47:50 +0000 Subject: We don't need to "sanitize" the hbeat if we didn't get one. Hopefully we'll get one before the system is declared down. --- hbeat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbeat.c b/hbeat.c index 42da6bd..c2bb9c9 100644 --- a/hbeat.c +++ b/hbeat.c @@ -117,7 +117,8 @@ hbeat(hbeat_t hbh) /* quickly sanity check that we're getting the same * hbeat every time we ask for it */ - if (hbeatp->last_rhost_btime && hbeat != hbeatp->last_rhost_btime) { + if (hbeat && hbeatp->last_rhost_btime + && hbeat != hbeatp->last_rhost_btime) { hbeat2 = btime(hbeatp->host); if (hbeat != hbeat2) { fprintf(stderr, "Got conflicting hbeat times (%d and %d), discarding both\n", hbeat, hbeat2); -- cgit