viced: Assert valid statistics indices
authorAndrew Deason <adeason@sinenomine.net>
Thu, 29 Sep 2011 23:36:07 +0000 (18:36 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 30 Sep 2011 23:50:59 +0000 (16:50 -0700)
commitd43438bb914f267f1c65d81e23efbab6874ae426
tree646b301c5d47131a0635ad36db7348a7fa63ff28
parent22d94407ea06a3213b7f0f6d57edd48d1977b2e1
viced: Assert valid statistics indices

Make sure we are passed valid statistic index numbers, so passing in a
bad index doesn't result in writing over random memory.

Change-Id: I29ed03b59df937e6f95fba44209a03db23613a8d
Reviewed-on: http://gerrit.openafs.org/5525
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/viced/fsstats.c