diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-09 05:38:59 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-09 05:38:59 +0000 |
commit | 5c37afbc475c712880a343a15253d74a3bf6a7f6 (patch) | |
tree | 0b0db7304ed387ecd01baef5112e05e86574dcf2 /usr.sbin/relayd | |
parent | 36efe12e281a33ef16a755f248262eedf81f0241 (diff) |
Do not notify twice about the same timeout in check_icmp, this previously
corrupted statistics.
Found out by Piotr Sikora < piotr@sikora.nu >.
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/check_icmp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/relayd/check_icmp.c b/usr.sbin/relayd/check_icmp.c index 7c6bfa699d1..2f54a08e0df 100644 --- a/usr.sbin/relayd/check_icmp.c +++ b/usr.sbin/relayd/check_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_icmp.c,v 1.19 2007/09/28 13:29:56 pyr Exp $ */ +/* $OpenBSD: check_icmp.c,v 1.20 2007/10/09 05:38:58 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -147,9 +147,10 @@ icmp_checks_timeout(struct ctl_icmp_event *cie, const char *msg) if (((struct sockaddr *)&host->conf.ss)->sa_family != cie->af) continue; - if (!(host->flags & F_CHECK_DONE)) + if (!(host->flags & F_CHECK_DONE)) { host->up = HOST_DOWN; - hce_notify_done(host, msg); + hce_notify_done(host, msg); + } } } } |