CRAS: rclient - range check direction parameters

The direction coming from the client shouldn't be trusted to be valid.

Change-Id: I69e26d86fe7ed0a64f53bbc3d89b730a6d144224
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/696282
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
1 file changed