diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:48:46 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:48:46 +0000 |
commit | 957ddb3bd611ab89ff5ec778a7c55501667cb02b (patch) | |
tree | 77afbb61b1a1c11394f570ff7cd18004c4994178 /security/ssh | |
parent | Make the SOCKS support from USE_SOCKS play nicely with the socks5 port. (diff) |
Merge in change requested by theo:
OpenBSD and FreeBSD now both use rresvport. This is a nop for
FreeBSD, but for OpenBSD this picks random port numbers.
Submitted by: deraadt@cvs.openbsd.org
Notes
Notes:
svn path=/head/; revision=9175
Diffstat (limited to 'security/ssh')
-rw-r--r-- | security/ssh/files/patch-al | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/ssh/files/patch-al b/security/ssh/files/patch-al index 1da799c26ac5..9339ab05185c 100644 --- a/security/ssh/files/patch-al +++ b/security/ssh/files/patch-al @@ -6,7 +6,7 @@ { struct sockaddr_in sin; int p; -+ #if defined(__FreeBSD__) && !defined(SOCKS) ++ #if (defined(__OpenBSD__) || defined(__FreeBSD__)) && !defined(SOCKS) + p = 1023; /* Compat with old FreeBSD */ + sock = rresvport(&p); + if (sock < 0) |