summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2007-01-05 23:47:50 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:46 -0400
commit520d50ab54024c6ab421d7e36e62ffb7b68bdfe6 (patch)
tree6ed91cfdc655d861fd2f64ec06e12ff9f4012fbb
parent3a07ad842fcae0f59c449082a0aa6fdf06a9ed35 (diff)
downloadqarsh-520d50ab54024c6ab421d7e36e62ffb7b68bdfe6.tar.gz
qarsh-520d50ab54024c6ab421d7e36e62ffb7b68bdfe6.tar.xz
qarsh-520d50ab54024c6ab421d7e36e62ffb7b68bdfe6.zip
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.
-rw-r--r--hbeat.c3
1 files changed, 2 insertions, 1 deletions
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);