diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-25 09:22:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-25 09:22:35 +0000 |
commit | eb4c9a72ecc08f4745d694ae0462ae14102ca946 (patch) | |
tree | a4aede5be1470899fcc3447684ca9d5446d8c531 /sys/nfs/nfs_socket.c | |
parent | 670b144ca3988b74791126fca2d98389f20db256 (diff) |
XXX should do reserved ports
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r-- | sys/nfs/nfs_socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 208c121c37f..98155666183 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.10 1997/04/18 10:13:27 deraadt Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.11 1997/04/25 09:22:31 deraadt Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -174,6 +174,7 @@ nfs_connect(nmp, rep) sin->sin_len = m->m_len = sizeof (struct sockaddr_in); sin->sin_family = AF_INET; sin->sin_addr.s_addr = INADDR_ANY; + /* XXX should do random allocation */ tport = IPPORT_RESERVED - 1; sin->sin_port = htons(tport); while ((error = sobind(so, m)) == EADDRINUSE && |