diff options
-rw-r--r-- | security/ssh/files/patch-al | 3 | ||||
-rw-r--r-- | security/ssh2/files/patch-al | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al index 4add2482628b..cdda2b13b478 100644 --- a/security/ssh/files/patch-al +++ b/security/ssh/files/patch-al @@ -2,11 +2,12 @@ --- sshconnect.c Mon Aug 12 13:26:46 1996 *************** *** 235,240 **** ---- 235,245 ---- +--- 235,246 ---- { struct sockaddr_in sin; int p; + #if defined(__FreeBSD__) && !defined(SOCKS) ++ p = 1023; /* Compat with old FreeBSD */ + sock = rresvport(&p); + if (sock < 0) + fatal("rresvport: %.100s", strerror(errno)); diff --git a/security/ssh2/files/patch-al b/security/ssh2/files/patch-al index 4add2482628b..cdda2b13b478 100644 --- a/security/ssh2/files/patch-al +++ b/security/ssh2/files/patch-al @@ -2,11 +2,12 @@ --- sshconnect.c Mon Aug 12 13:26:46 1996 *************** *** 235,240 **** ---- 235,245 ---- +--- 235,246 ---- { struct sockaddr_in sin; int p; + #if defined(__FreeBSD__) && !defined(SOCKS) ++ p = 1023; /* Compat with old FreeBSD */ + sock = rresvport(&p); + if (sock < 0) + fatal("rresvport: %.100s", strerror(errno)); |