From 48500b76a665eb0b09417624157a9adeaf7f11fa Mon Sep 17 00:00:00 2001 From: SADA Kenji Date: Tue, 15 Jun 1999 20:14:04 +0000 Subject: PR: ports/12037 Submitted by: Issei Suzuki Upgrade to 1.2.27. # I'm not maintainer but it seems that torstenb is too busy to # look the PR and many people want new version ssh port. --- security/ssh/files/patch-al | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'security/ssh/files/patch-al') diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al index 9339ab05185c..839d1fe2b2bf 100644 --- a/security/ssh/files/patch-al +++ b/security/ssh/files/patch-al @@ -1,26 +1,26 @@ -*** sshconnect.c.orig Wed Apr 23 08:40:11 1997 ---- sshconnect.c Fri Apr 25 12:41:59 1997 +*** sshconnect.c.orig Wed May 12 20:19:29 1999 +--- sshconnect.c Sun Jun 6 02:39:02 1999 *************** -*** 311,316 **** ---- 311,322 ---- +*** 347,352 **** +--- 347,358 ---- { struct sockaddr_in sin; int p; + #if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SOCKS) -+ p = 1023; /* Compat with old FreeBSD */ -+ sock = rresvport(&p); -+ if (sock < 0) -+ fatal("rresvport: %.100s", strerror(errno)); ++ p = 1023; /* Compat with old FreeBSD */ ++ sock = rresvport(&p); ++ if (sock < 0) ++ fatal("rresvport: %.100s", strerror(errno)); + #else for (p = 1023; p > 512; p--) - { - sock = socket(AF_INET, SOCK_STREAM, 0); + { + sock = socket(AF_INET, SOCK_STREAM, 0); *************** -*** 338,343 **** ---- 344,350 ---- - } - fatal("bind: %.100s", strerror(errno)); - } +*** 374,379 **** +--- 380,386 ---- + } + fatal("bind: %.100s", strerror(errno)); + } + #endif debug("Allocated local port %d.", p); } -- cgit v1.2.3