From: Sid Moore Date: Fri, 3 Dec 2010 14:19:06 +0000 (-0500) Subject: rpc.mountd: Checking RPC Procedure ID before process it X-Git-Tag: nfs-utils-1-2-4-rc4~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e8dbaddc8465dcd07b53f8e80a537703dd0248ca;p=nfs-utils.git rpc.mountd: Checking RPC Procedure ID before process it Signed-off-by: Steve Dickson --- diff --git a/support/nfs/rpcdispatch.c b/support/nfs/rpcdispatch.c index 984c646..5be2824 100644 --- a/support/nfs/rpcdispatch.c +++ b/support/nfs/rpcdispatch.c @@ -37,6 +37,11 @@ rpc_dispatch(struct svc_req *rqstp, SVCXPRT *transp, return; } + if (dtable->nproc <= rqstp->rq_proc) { + svcerr_noproc(transp); + return; + } + dent = dtable->entries + rqstp->rq_proc; if (dent->func == NULL) {