From d141744adb046899b1ce7b67da9500280377ea04 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Mon, 4 Nov 2013 23:08:19 +0100 Subject: [PATCH] Fix fping hanging forever on permanent sendto failure (Shawn Chu, #52) --- ChangeLog | 1 + src/fping.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index a4dc662..4918e62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ UNRELEASED * Allow running as non-root on Mac OS X by using non-privileged ICMP (#7) * Remove unnecessary IPv6 socket options * Fix again compatibility issue with FreeBSD (Shawn Chu) + * Fix fping hanging forever on permanent sendto failure (Shawn Chu) 2013-10-10 David Schweikert * Version 3.6 diff --git a/src/fping.c b/src/fping.c index 7022a8f..ec9318c 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1464,7 +1464,9 @@ int send_ping( int s, HOST_ENTRY *h ) h->num_sent++; h->num_sent_i++; + h->waiting++; num_pingsent++; + last_send_time = h->last_send_time; free( buffer ); return(1); }