summaryrefslogtreecommitdiffstats
path: root/utils/nfsd
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2007-05-10 15:04:07 -0400
committerNeil Brown <neilb@suse.de>2007-07-16 10:49:03 +1000
commite64f7f6b73cfc80662cf5f724f3c1eb86a392883 (patch)
tree2205c38d7a815e38fa8ebc2ffd5cff6c272c4198 /utils/nfsd
parenta9e72ee341b9294dea47ca53e80110775492eb6f (diff)
downloadnfs-utils-e64f7f6b73cfc80662cf5f724f3c1eb86a392883.tar.gz
nfs-utils-e64f7f6b73cfc80662cf5f724f3c1eb86a392883.tar.xz
nfs-utils-e64f7f6b73cfc80662cf5f724f3c1eb86a392883.zip
The wrong bit field is being passed to NFSCTL_TCPISSET()
during one of the sanity checks in rpc.nfsd. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/nfsd')
-rw-r--r--utils/nfsd/nfsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index d0bbfb3..aaf8d29 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -118,7 +118,8 @@ main(int argc, char **argv)
fprintf(stderr, "no version specified\n");
exit(1);
}
- if (NFSCTL_VERISSET(versbits, 4) && !NFSCTL_TCPISSET(versbits)) {
+
+ if (NFSCTL_VERISSET(versbits, 4) && !NFSCTL_TCPISSET(protobits)) {
fprintf(stderr, "version 4 requires the TCP protocol\n");
exit(1);
}