aboutsummaryrefslogtreecommitdiffstats
path: root/security/ssh2/files/patch-al
blob: 4add2482628bd955c56e102666f0d04894cd477f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*** sshconnect.c.dist   Thu Jun  6 21:47:06 1996
--- sshconnect.c    Mon Aug 12 13:26:46 1996
***************
*** 235,240 ****
--- 235,245 ----
      {
        struct sockaddr_in sin;
        int p;
+ #if defined(__FreeBSD__)  && !defined(SOCKS)
+       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);
***************
*** 262,267 ****
--- 267,273 ----
        }
      fatal("bind: %.100s", strerror(errno));
    }
+ #endif
        debug("Allocated local port %d.", p);
      }
    else
itle='2018-04-10 03:13:40 +0800'>2018-04-103-6/+7 * Do not abuse INSTALL_MAN when installing documentation, examples, anddanfe2018-01-111-1/+1 * sysutils/backuppc4: Update to 4.1.5dbaio2018-01-103-7/+6 * Change default version of samba from 4.4 to 4.6antoine2017-12-231-0/+1 * sysutils/backuppc4: Update to 4.1.4dbaio2017-11-272-5/+4 * sysutils/backuppc4: Fix pkg-messagedbaio2017-06-272-1/+2 * sysutils/backuppc4: Update to 4.1.3dbaio2017-06-082-5/+5 * sysutils/backuppc, sysutils/backuppc4: Add GitHub to MASTER_SITESdbaio2017-06-061-1/+2 * Remove outdated PERL_LEVEL checksunpoet2017-06-061-8/+3 * sysutils/backuppc4: Update to 4.1.2dbaio2017-05-312-6/+6