diff options
author | Peter Wemm <peter@FreeBSD.org> | 1996-12-27 16:42:41 +0800 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1996-12-27 16:42:41 +0800 |
commit | 67faab29d61db98023ec4fa939b5ce5b4f294e69 (patch) | |
tree | 680520c4be61f37c5437f464ed0a0959b7c95e02 /security/ssh | |
parent | 0ebe3bae3baea6775922265d4f95bc3545ab14dc (diff) | |
download | freebsd-ports-gnome-67faab29d61db98023ec4fa939b5ce5b4f294e69.tar.gz freebsd-ports-gnome-67faab29d61db98023ec4fa939b5ce5b4f294e69.tar.zst freebsd-ports-gnome-67faab29d61db98023ec4fa939b5ce5b4f294e69.zip |
Make one of our changes for -current work on 2.1. In -current, rresvport()
ignores it's argument (it's meaningless, the kernel keeps the state), but
2.1.x use it. ssh was effectively giving a random port to 2.1.
Originally noticed by: John Polstra <jdp@polstra.com>
Diffstat (limited to 'security/ssh')
-rw-r--r-- | security/ssh/files/patch-al | 3 |
1 files changed, 2 insertions, 1 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)); |