]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 984c646710a97f10d5d1fb443a7d4a3eba55e0c7..5be282441e06c4007bec858169e6d76ab35634c6 100644 (file)
@@ -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) {