summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/nfs/krpc_subr.c3
-rw-r--r--sys/nfs/nfs_socket.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c
index d449cdc0fa4..4336e8a6d05 100644
--- a/sys/nfs/krpc_subr.c
+++ b/sys/nfs/krpc_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: krpc_subr.c,v 1.5 1996/06/10 07:30:04 deraadt Exp $ */
+/* $OpenBSD: krpc_subr.c,v 1.6 1997/04/25 09:22:34 deraadt Exp $ */
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
/*
@@ -261,6 +261,7 @@ krpc_call(sa, prog, vers, func, data, from_p)
sin->sin_len = m->m_len = sizeof(*sin);
sin->sin_family = AF_INET;
sin->sin_addr.s_addr = INADDR_ANY;
+ /* XXX should do random allocation */
tport = IPPORT_RESERVED;
do {
tport--;
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 &&