1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/security/ssh/files/patch-al

28 lines
739 B
Plaintext
Raw Normal View History

*** sshconnect.c.orig Wed May 12 20:19:29 1999
--- sshconnect.c Sun Jun 6 02:39:02 1999
***************
*** 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));
+ #else
for (p = 1023; p > 512; p--)
{
sock = socket(AF_INET, SOCK_STREAM, 0);
***************
*** 374,379 ****
--- 380,386 ----
}
fatal("bind: %.100s", strerror(errno));
}
+ #endif
debug("Allocated local port %d.", p);
}
else