diff options
author | Steve Dickson <steved@redhat.com> | 2007-05-10 15:04:07 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-16 10:49:03 +1000 |
commit | e64f7f6b73cfc80662cf5f724f3c1eb86a392883 (patch) | |
tree | 2205c38d7a815e38fa8ebc2ffd5cff6c272c4198 /utils/nfsd/nfsd.c | |
parent | a9e72ee341b9294dea47ca53e80110775492eb6f (diff) | |
download | nfs-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/nfsd.c')
-rw-r--r-- | utils/nfsd/nfsd.c | 3 |
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); } |