summaryrefslogtreecommitdiff
path: root/security/ssh/files/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'security/ssh/files/patch-al')
-rw-r--r--security/ssh/files/patch-al30
1 files changed, 15 insertions, 15 deletions
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);
}