]> git.gsnw.org Git - fping.git/commitdiff
avoid duplicate hosts with -m
authorDavid Schweikert <david@schweikert.ch>
Fri, 17 Feb 2017 11:24:38 +0000 (12:24 +0100)
committerDavid Schweikert <david@schweikert.ch>
Fri, 17 Feb 2017 11:24:38 +0000 (12:24 +0100)
src/fping.c

index c3e7a76661ddf2667c45e22837503b2be9d7decd..2a885e42260176a0c37927f48fa75a630a89447a 100644 (file)
@@ -2238,6 +2238,7 @@ void add_name(char* name)
     }
 #endif
     else {
+        hints.ai_socktype = SOCK_STREAM;
         hints.ai_protocol = 0;
     }
     ret_ga = getaddrinfo(name, NULL, &hints, &res0);