mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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>
This commit is contained in:
parent
93335315ad
commit
b0d8e5b388
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124453
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user