summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);