rx-slow-write-packet-20090126
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 26 Jan 2009 22:53:48 +0000 (22:53 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 26 Jan 2009 22:53:48 +0000 (22:53 +0000)
commit6e8039e8a55056f19895036ef6784f4fab5ab758
tree62a5b93adfb9b6cd4041f955d499ababf5218519
parent8552f84b8ed0bce52dab1fd168054038d6ce20a9
rx-slow-write-packet-20090126

LICENSE MIT

In rx_SlowWritePacket the use of RX_MAXWVECS was incorrect.  The
niovecs field is allocated as [RX_MAXWVECS+1] with the 0th element
reserved for the rx header.  niovecs[RX_MAXWVECS] is therefore a
valid data buffer and the comparison should be (i <= RX_MAXWVECS).

This error has most likely not been noticed previously because
nothing in the OpenAFS source tree uses this function.
src/rx/rx_packet.c