rpc.mountd: Checking RPC Procedure ID before process it
authorSid Moore <learnmost@gmail.com>
Fri, 3 Dec 2010 14:19:06 +0000 (09:19 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 3 Dec 2010 14:19:06 +0000 (09:19 -0500)
Signed-off-by: Steve Dickson <steved@redhat.com>
support/nfs/rpcdispatch.c

index 984c646..5be2824 100644 (file)
@@ -37,6 +37,11 @@ rpc_dispatch(struct svc_req *rqstp, SVCXPRT *transp,
                return;
        }
 
                return;
        }
 
+       if (dtable->nproc <= rqstp->rq_proc) {
+               svcerr_noproc(transp);
+               return;
+       }
+
        dent = dtable->entries + rqstp->rq_proc;
 
        if (dent->func == NULL) {
        dent = dtable->entries + rqstp->rq_proc;
 
        if (dent->func == NULL) {