diff options
author | alfred <alfred@FreeBSD.org> | 2004-01-13 01:04:36 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-01-13 01:04:36 +0000 |
commit | 7dfc5abc07f75a03cf9367722d6004dfa7cebbc1 (patch) | |
tree | 00f28b304ca6ecab10fcd17b649c83e6dcc9997f /sys/rpc | |
parent | 517573029df20e94d870062ccff78104aba4f35c (diff) | |
download | FreeBSD-src-7dfc5abc07f75a03cf9367722d6004dfa7cebbc1.zip FreeBSD-src-7dfc5abc07f75a03cf9367722d6004dfa7cebbc1.tar.gz |
Prevent a panic when mounting a v2/v3 only server with mount_nfs4.
Submitted by: Jim Rees <rees@umich.edu>
Reported/testing: Florian C. Smeets <flo@kasimir.com>
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/rpcclnt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c index af5c001..d733080 100644 --- a/sys/rpc/rpcclnt.c +++ b/sys/rpc/rpcclnt.c @@ -1344,6 +1344,8 @@ rpcclnt_request(rpc, mrest, procnum, td, cred, reply) rpcm_dissect(tl, u_int32_t *, 2 * RPCX_UNSIGNED); reply->stat.mismatch_info.low = fxdr_unsigned(u_int32_t, *tl++); reply->stat.mismatch_info.high = fxdr_unsigned(u_int32_t, *tl); + error = EOPNOTSUPP; + goto rpcmout; } else if (reply->stat.status > 5) { error = EBADRPC; goto rpcmout; |