From d6808efd819568b1a09b4f98addccdb592fe9165 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Fri, 8 Nov 2013 11:13:11 +0100 Subject: [PATCH] Fix segmentation fault introduced in version 3.7 with loop mode (#55) --- ChangeLog | 4 ++++ src/fping.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 349efeb..efe2e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-11-08 David Schweikert + * Version 3.8 + * Fix segmentation fault introduced in version 3.7 with loop mode (#55) + 2013-11-04 David Schweikert * Version 3.7 * Allow running as non-root on Mac OS X by using non-privileged ICMP (#7) diff --git a/src/fping.c b/src/fping.c index ec9318c..8316cc3 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1604,7 +1604,7 @@ int wait_for_reply(long wait_time) this_count = seqmap_value->ping_count; this_reply = timeval_diff( ¤t_time, sent_time ); - if( h->resp_times[this_count] == RESP_WAITING ) + if( loop_flag || h->resp_times[this_count] == RESP_WAITING ) { /* only for non-duplicates: */ h->waiting = 0;