From e64f7f6b73cfc80662cf5f724f3c1eb86a392883 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 10 May 2007 15:04:07 -0400 Subject: [PATCH] The wrong bit field is being passed to NFSCTL_TCPISSET() during one of the sanity checks in rpc.nfsd. Signed-off-by: Steve Dickson --- utils/nfsd/nfsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5