From e8dbaddc8465dcd07b53f8e80a537703dd0248ca Mon Sep 17 00:00:00 2001 From: Sid Moore Date: Fri, 3 Dec 2010 09:19:06 -0500 Subject: [PATCH] rpc.mountd: Checking RPC Procedure ID before process it Signed-off-by: Steve Dickson --- support/nfs/rpcdispatch.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.5