aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-20 00:50:55 +0800
committershin <shin@FreeBSD.org>2000-02-20 00:50:55 +0800
commit326cc20cea8711bd964c841958c9a08a68420d29 (patch)
tree35b24098d398dc7c017a7764876d2a066ff965c8 /security
parent4ad3d6ff96b3a27a7fadc30865e041b68fe28830 (diff)
downloadfreebsd-ports-gnome-326cc20cea8711bd964c841958c9a08a68420d29.tar.gz
freebsd-ports-gnome-326cc20cea8711bd964c841958c9a08a68420d29.tar.zst
freebsd-ports-gnome-326cc20cea8711bd964c841958c9a08a68420d29.zip
Use 'IPv4or6' instead of AF_UNSPEC for 1st getaddrinfo() ai_family.
Without this fix, still query to AAAA recored happens even if -4 options is specified. Reviewed by: green
Diffstat (limited to 'security')
-rw-r--r--security/openssh/files/patch-ak15
1 files changed, 12 insertions, 3 deletions
diff --git a/security/openssh/files/patch-ak b/security/openssh/files/patch-ak
index f76d52056c2e..079515e6e7e7 100644
--- a/security/openssh/files/patch-ak
+++ b/security/openssh/files/patch-ak
@@ -1,6 +1,6 @@
---- /usr/ports/distfiles/OpenSSH-1.2/src/usr.bin/ssh/ssh.c Tue Nov 23 18:57:50 1999
-+++ ./ssh.c Tue Nov 23 19:28:33 1999
-@@ -123,6 +123,9 @@
+--- ssh.c.orig Sat Feb 19 02:39:02 2000
++++ ssh.c Sat Feb 19 23:47:33 2000
+@@ -131,6 +131,9 @@
log("Using rsh. WARNING: Connection will not be encrypted.");
/* Build argument list for rsh. */
i = 0;
@@ -10,3 +10,12 @@
args[i++] = _PATH_RSH;
/* host may have to come after user on some systems */
args[i++] = host;
+@@ -490,7 +493,7 @@
+ int errgai;
+ memset(&hints, 0, sizeof(hints));
+ hints.ai_family = AF_UNSPEC;
+- hints.ai_flags = AI_CANONNAME;
++ hints.ai_flags = IPv4or6;
+ hints.ai_socktype = SOCK_STREAM;
+ errgai = getaddrinfo(host, NULL, &hints, &ai);
+ if (errgai == 0) {