diff options
author | Nate Straz <nstraz@redhat.com> | 2007-01-05 23:47:50 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | 520d50ab54024c6ab421d7e36e62ffb7b68bdfe6 (patch) | |
tree | 6ed91cfdc655d861fd2f64ec06e12ff9f4012fbb /hbeat.c | |
parent | 3a07ad842fcae0f59c449082a0aa6fdf06a9ed35 (diff) | |
download | qarsh-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.
Diffstat (limited to 'hbeat.c')
-rw-r--r-- | hbeat.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |