]> git.gsnw.org Git - fping.git/commitdiff
This commit fixes #13 (Debian #308695): don't remove hosts if sendto returns an error...
authorThomas Liske <thomas@fiasko-nw.net>
Fri, 6 Jul 2012 20:33:20 +0000 (22:33 +0200)
committerThomas Liske <thomas@fiasko-nw.net>
Fri, 6 Jul 2012 20:33:20 +0000 (22:33 +0200)
src/fping.c

index e0db38389b422a3d1a93fdaf9016a578a9f67538..7a628bcf69d3a67aeb3bdca6ba97f5bb780b73f0 100644 (file)
@@ -1586,10 +1586,11 @@ int send_ping( int s, HOST_ENTRY *h )
 
         }/* IF */
         
-        num_unreachable++;
-        remove_job( h ); 
+        h->num_sent++;
+        h->num_sent_i++;
+        num_pingsent++;
         free( buffer );
-        return(0);
+        return(1);
     }
 
     /* mark this trial as outstanding */