summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_socket.c
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-12-24 20:14:36 +0000
committerdm <dm@cvs.openbsd.org>1996-12-24 20:14:36 +0000
commit62cd8c0c89536d1ce565b716e6e360685483b880 (patch)
tree42ae1a4808021d1449583f5d5db30b988d3f5062 /sys/nfs/nfs_socket.c
parente15f116b6f6f3b39a5dbf4b24643a7d58c41e0a2 (diff)
reclaim NFSMNT_RESVPORT bit, and add more traditional attribute cache timeout flags
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r--sys/nfs/nfs_socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index 2ecd99658d2..c88356871a8 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.7 1996/07/03 07:10:33 deraadt Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.8 1996/12/24 20:14:29 dm Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -165,8 +165,10 @@ nfs_connect(nmp, rep)
/*
* Some servers require that the client port be a reserved port number.
+ * We always allocate a reserved port, as this prevents filehandle
+ * disclosure through UDP port capture.
*/
- if (saddr->sa_family == AF_INET && (nmp->nm_flag & NFSMNT_RESVPORT)) {
+ if (saddr->sa_family == AF_INET) {
MGET(m, M_WAIT, MT_SONAME);
sin = mtod(m, struct sockaddr_in *);
sin->sin_len = m->m_len = sizeof (struct sockaddr_in);