]> git.gsnw.org Git - fping.git/commitdiff
Fix segmentation fault introduced in version 3.7 with loop mode (#55)
authorDavid Schweikert <david@schweikert.ch>
Fri, 8 Nov 2013 10:13:11 +0000 (11:13 +0100)
committerDavid Schweikert <david@schweikert.ch>
Fri, 8 Nov 2013 10:13:11 +0000 (11:13 +0100)
ChangeLog
src/fping.c

index 349efeb443eb21f13a0b0f81fbac93aefab94039..efe2e9947992c02756400306195b95ef028ff4e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-08  David Schweikert  <david@schweikert.ch>
+  * Version 3.8
+  * Fix segmentation fault introduced in version 3.7 with loop mode (#55)
+
 2013-11-04  David Schweikert  <david@schweikert.ch>
   * Version 3.7
   * Allow running as non-root on Mac OS X by using non-privileged ICMP (#7)
index ec9318c9dc802ad4118e523587da6b1d97abb5e6..8316cc3a3eefe7eef41ed051ee02920b8b4740c6 100644 (file)
@@ -1604,7 +1604,7 @@ int wait_for_reply(long wait_time)
     this_count = seqmap_value->ping_count;
     this_reply = timeval_diff( &current_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;