vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F 9c4d06
diff -up openssh-5.8p1/sshconnect.c.getaddrinfo openssh-5.8p1/sshconnect.c
Jan F 9c4d06
--- openssh-5.8p1/sshconnect.c.getaddrinfo	2011-04-27 09:51:44.521384633 +0200
Jan F 9c4d06
+++ openssh-5.8p1/sshconnect.c	2011-04-27 09:53:21.224443308 +0200
Jan F 9c4d06
@@ -355,6 +355,7 @@ ssh_connect(const char *host, struct soc
Jan F 9c4d06
 	memset(&hints, 0, sizeof(hints));
Jan F 9c4d06
 	hints.ai_family = family;
Jan F 9c4d06
 	hints.ai_socktype = SOCK_STREAM;
Jan F 9c4d06
+	hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG;
Jan F 9c4d06
 	snprintf(strport, sizeof strport, "%u", port);
Jan F 9c4d06
 	if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0)
Jan F 9c4d06
 		fatal("%s: Could not resolve hostname %.100s: %s", __progname,