walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
c2060be
commit 1c84f1f980ed36e95e0bc410a7955c569bf4b4d2
c2060be
Author: Steve Dickson <steved@redhat.com>
c2060be
Date:   Thu May 10 15:04:07 2007 -0400
c2060be
c2060be
    The wrong bit field is being passed to NFSCTL_TCPISSET()
c2060be
    during one of the sanity checks in rpc.nfsd.
c2060be
    
c2060be
    Signed-off-by: Steve Dickson <steved@redhat.com>
c2060be
c2060be
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
c2060be
index d0bbfb3..aaf8d29 100644
c2060be
--- a/utils/nfsd/nfsd.c
c2060be
+++ b/utils/nfsd/nfsd.c
c2060be
@@ -118,7 +118,8 @@ main(int argc, char **argv)
c2060be
 		fprintf(stderr, "no version specified\n");
c2060be
 		exit(1);
c2060be
 	}			
c2060be
-	if (NFSCTL_VERISSET(versbits, 4) && !NFSCTL_TCPISSET(versbits)) {
c2060be
+
c2060be
+	if (NFSCTL_VERISSET(versbits, 4) && !NFSCTL_TCPISSET(protobits)) {
c2060be
 		fprintf(stderr, "version 4 requires the TCP protocol\n");
c2060be
 		exit(1);
c2060be
 	}