summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-10-25 19:07:56 +0000
committeriedowse <iedowse@FreeBSD.org>2001-10-25 19:07:56 +0000
commit6eb4ba0b09b58e078bc1b4648c0d9e3b2c1771f2 (patch)
tree63461eed0604901ec65ef6701a7fb5952fffc5ef /sys/nfsserver
parent321fc71364692f02cd72e85a8f846e7c06a8d308 (diff)
downloadFreeBSD-src-6eb4ba0b09b58e078bc1b4648c0d9e3b2c1771f2.zip
FreeBSD-src-6eb4ba0b09b58e078bc1b4648c0d9e3b2c1771f2.tar.gz
Now that nfsm_reply() does not usually set 'error' to 0, we need
to do it explicitly in nfsrv_noop so that the reply gets sent back to the client. This fixes the generation of a selection of RPC error replies (RPC_PROGMISMATCH, RPC_PROGUNAVAIL, RPC_PROCUNAVAIL etc.) that are used by some clients to detect support for optional protocols and features. Reviewed by: peter Reported by: Thomas Quinot <quinot@inf.enst.fr> PR: kern/31479
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index f3e0c9a..159e190 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -4000,6 +4000,7 @@ nfsrv_noop(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
else
error = EPROCUNAVAIL;
nfsm_reply(0);
+ error = 0;
nfsmout:
return (error);
}
OpenPOWER on IntegriCloud