diff options
Diffstat (limited to 'usr.bin/finger/net.c')
-rw-r--r-- | usr.bin/finger/net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 67a7087..b4df124 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -60,6 +60,7 @@ __FBSDID("$FreeBSD$"); extern int lflag; /* XXX finger.h? */ extern int Tflag; /* XXX finger.h? */ +extern sa_family_t family; static void cleanup(int sig);; static int do_protocol(const char *name, const struct addrinfo *ai); @@ -82,7 +83,7 @@ netfinger(name) alarm(TIME_LIMIT); hint.ai_flags = AI_CANONNAME; - hint.ai_family = PF_UNSPEC; + hint.ai_family = family; hint.ai_socktype = SOCK_STREAM; error = getaddrinfo(host, "finger", &hint, &ai0); |