MFstable/10 r302453:
MFC r301605:
Bounds check rpcbs_rmtcall(..) to ensure rtype is less than RPCBVERS_STAT
Not returning if rtype == RPCBVERS_STAT will cause us to overrun the inf array, as
it's defined to be exactly RPCBVERS_STAT elements in rpcb_prot.x:
> include/rpc/rpcb_prot.x:typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
The proposed change also matches the rest of the rtype upper bound checks in the
file, so the original change was likely a typo.
CID:
1007567
git-svn-id: svn://svn.freebsd.org/base/stable/9@302454
ccf9f872-aa2e-dd11-9fc8-
001c23d0bc1f