From: Douglas Engert Date: Fri, 21 Jan 2005 17:44:36 +0000 (+0000) Subject: rx-packetreadwrite-adjust-offset-20050119 X-Git-Tag: BP-disconnected~31 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=110b1f14bd5b5548211ece9a32c540490e0aef6a;p=packages%2Fo%2Fopenafs.git rx-packetreadwrite-adjust-offset-20050119 offset - l must be zero in the second loop pass to avoid overwrites --- diff --git a/src/rx/rx_packet.c b/src/rx/rx_packet.c index c5382a4a6..c1f879e27 100644 --- a/src/rx/rx_packet.c +++ b/src/rx/rx_packet.c @@ -193,6 +193,7 @@ rx_SlowReadPacket(struct rx_packet * packet, unsigned int offset, int resid, resid -= j; out += j; l += packet->wirevec[i].iov_len; + offset = l; i++; } @@ -234,6 +235,7 @@ rx_SlowWritePacket(struct rx_packet * packet, int offset, int resid, char *in) resid -= j; in += j; l += packet->wirevec[i].iov_len; + offset = l; i++; }