summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_nfsiod.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-04-30 09:51:37 +0000
committerdfr <dfr@FreeBSD.org>1997-04-30 09:51:37 +0000
commit840e81b7a5fc65719a450a138531e02e36524320 (patch)
tree4fbdbcfa91bca420a6d674f0f1254f98234adb01 /sys/nfsclient/nfs_nfsiod.c
parent493ade051076367a5b7d67c755c516ca081df79d (diff)
downloadFreeBSD-src-840e81b7a5fc65719a450a138531e02e36524320.zip
FreeBSD-src-840e81b7a5fc65719a450a138531e02e36524320.tar.gz
Allow NULL rpcs on non-privileged ports at all times to work around broken
clients. PR: kern/3298 Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r--sys/nfsclient/nfs_nfsiod.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c
index 75d43c2..ea35c01 100644
--- a/sys/nfsclient/nfs_nfsiod.c
+++ b/sys/nfsclient/nfs_nfsiod.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
- * $Id: nfs_syscalls.c,v 1.20 1997/03/27 20:01:07 guido Exp $
+ * $Id: nfs_syscalls.c,v 1.21 1997/04/27 20:01:23 wollman Exp $
*/
#include <sys/param.h>
@@ -607,7 +607,8 @@ nfssvc_nfsd(nsd, argp, p)
sin = mtod(nam, struct sockaddr_in *);
port = ntohs(sin->sin_port);
- if (port >= IPPORT_RESERVED) {
+ if (port >= IPPORT_RESERVED &&
+ nd->nd_procnum != NFSPROC_NULL) {
nd->nd_procnum = NFSPROC_NOOP;
nd->nd_repstat = (NFSERR_AUTHERR | AUTH_TOOWEAK);
cacherep = RC_DOIT;
OpenPOWER on IntegriCloud