]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298333:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 May 2016 08:17:42 +0000 (08:17 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 May 2016 08:17:42 +0000 (08:17 +0000)
commit585dae134ba48f19d78a4a91cb612df1051da414
treef0a6ee323716d0780c9fecd40ff2f7fc33389256
parenta3f81dfa47d6f592b378d189d9477f319c355b24
MFC r298333:
r298333 (by cem):

Make Racct macro slightly more gracious given RACCT_UNDEFINED

rctl_string_to_rule could previously index below the zeroth element of
racct_types via the macro.  Maybe it shouldn't use the macro on
RACCT_UNDEFINED.  But given every other RACCT_ definition is non-negative, it
seems pretty easy to foot-shoot this one without the check.

CID: 1305574

git-svn-id: svn://svn.freebsd.org/base/stable/10@299616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/racct.h