summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-07-03 07:10:33 +0000
committerderaadt <deraadt@openbsd.org>1996-07-03 07:10:33 +0000
commitbaa4a8c5ffb11dbd6e7b1162469873fdfa26f24b (patch)
tree686916205b8153fa3a742dce1234aa5a3e2f757a
parentPermit old behaviour of uname(2) if new kernel variable is not available (diff)
downloadwireguard-openbsd-baa4a8c5ffb11dbd6e7b1162469873fdfa26f24b.tar.xz
wireguard-openbsd-baa4a8c5ffb11dbd6e7b1162469873fdfa26f24b.zip
cannot check for < NFS_MINPACKET on some transports; from guy@netapp.com
-rw-r--r--sys/nfs/nfs_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index a71af7b5a7e..2ecd99658d2 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.6 1996/04/21 22:30:26 deraadt Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.7 1996/07/03 07:10:33 deraadt Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -2018,7 +2018,7 @@ nfsrv_getstream(slp, waitflag)
slp->ns_flag |= SLP_LASTFRAG;
else
slp->ns_flag &= ~SLP_LASTFRAG;
- if (slp->ns_reclen < NFS_MINPACKET || slp->ns_reclen > NFS_MAXPACKET) {
+ if (slp->ns_reclen > NFS_MAXPACKET) {
slp->ns_flag &= ~SLP_GETSTREAM;
return (EPERM);
}