diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-07-16 21:15:37 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-07-16 21:15:37 +0000 |
commit | 8baa90fdcd1a3090c00cf1c911f928a1af01f8cc (patch) | |
tree | bc73ef7306cf51269c4318fc6104570890b4c3bc /usr.sbin | |
parent | f987d306241a3858a27481395e6cd2077d984cfb (diff) |
typo
also found by Kevin Steves
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/hoststated/check_icmp.c | 4 | ||||
-rw-r--r-- | usr.sbin/relayd/check_icmp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/check_icmp.c b/usr.sbin/hoststated/check_icmp.c index 558fc6907c2..371505344b8 100644 --- a/usr.sbin/hoststated/check_icmp.c +++ b/usr.sbin/hoststated/check_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_icmp.c,v 1.17 2007/07/16 21:14:58 pyr Exp $ */ +/* $OpenBSD: check_icmp.c,v 1.18 2007/07/16 21:15:36 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -220,7 +220,7 @@ send_icmp(int s, short event, void *arg) r = sendto(s, packet, sizeof(packet), 0, to, slen); if (r == -1) { - if (errno == EAGAIN && errno == EINTR) + if (errno == EAGAIN || errno == EINTR) goto retry; host->flags |= F_CHECK_SENT|F_CHECK_DONE; host->up = HOST_DOWN; diff --git a/usr.sbin/relayd/check_icmp.c b/usr.sbin/relayd/check_icmp.c index 558fc6907c2..371505344b8 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.17 2007/07/16 21:14:58 pyr Exp $ */ +/* $OpenBSD: check_icmp.c,v 1.18 2007/07/16 21:15:36 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -220,7 +220,7 @@ send_icmp(int s, short event, void *arg) r = sendto(s, packet, sizeof(packet), 0, to, slen); if (r == -1) { - if (errno == EAGAIN && errno == EINTR) + if (errno == EAGAIN || errno == EINTR) goto retry; host->flags |= F_CHECK_SENT|F_CHECK_DONE; host->up = HOST_DOWN; |