summaryrefslogtreecommitdiff
path: root/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-12-12 18:45:41 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-12-12 18:45:41 +0000
commit82b30b5879a1262b5c7712d9adf7c32cb16e0d40 (patch)
treecfd140ffc4602da90fc1ef6893489d19815ec93f /sbin/ping6/ping6.c
parent3ef78bea45f12d7a2f9c3e6420524dc8f96af899 (diff)
Don't wait one time interval before sending the first packet.
Problem reported by Andreas Lundin <lunde@woopheer.mine.nu> on tech@, but fix from KAME. ok pascoe markus
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r--sbin/ping6/ping6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index a8519371ba7..75e2030ade0 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.60 2005/12/02 01:05:50 deraadt Exp $ */
+/* $OpenBSD: ping6.c,v 1.61 2005/12/12 18:45:40 jaredy Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -1046,7 +1046,7 @@ main(int argc, char *argv[])
itimer.it_interval = interval;
itimer.it_value = interval;
(void)setitimer(ITIMER_REAL, &itimer, NULL);
- if (ntransmitted)
+ if (ntransmitted == 0)
retransmit();
}