diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2008-11-07 10:43:01 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2008-11-07 10:43:01 +0000 |
| commit | f8dcc5a8f7df80493d95e3fd990ce0b9bc3dec06 (patch) | |
| tree | 95e095f1aee0027aa1c519cb127aa850eebe3684 /sys/nfsserver | |
| parent | dca3a3a0110ce6fa2a4077daf80964265ba6adef (diff) | |
Notes
Diffstat (limited to 'sys/nfsserver')
| -rw-r--r-- | sys/nfsserver/nfs_fha.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_fha.c b/sys/nfsserver/nfs_fha.c index a2e4ca3afcf7..66e1d3fe679f 100644 --- a/sys/nfsserver/nfs_fha.c +++ b/sys/nfsserver/nfs_fha.c @@ -180,11 +180,16 @@ fha_extract_info(struct svc_req *req, struct fha_info *i) i->locktype = LK_EXCLUSIVE; /* - * Extract the procnum and convert to v3 form if necessary. + * Extract the procnum and convert to v3 form if necessary, + * taking care to deal with out-of-range procnums. Caller will + * ensure that rq_vers is either 2 or 3. */ procnum = req->rq_proc; - if (!v3) + if (!v3) { + if (procnum > NFSV2PROC_STATFS) + goto out; procnum = nfsrv_nfsv3_procid[procnum]; + } /* * We do affinity for most. However, we divide a realm of affinity |
