From: David Schweikert Date: Fri, 17 Feb 2017 11:24:38 +0000 (+0100) Subject: avoid duplicate hosts with -m X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d84ad4c94a11c7ea45b8ecb983bf2c585f1a076;p=fping.git avoid duplicate hosts with -m --- diff --git a/src/fping.c b/src/fping.c index c3e7a76..2a885e4 100644 --- a/src/fping.c +++ b/src/fping.c @@ -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);