coverity CID#216829Simplify the bounds checking of values received on the wire.Change-Id: I30beeac45ff2d8c08905986af9fabfda071ddc5b