git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
c558c12
)
fpq-bulk-free-math-error-20051101
author
Tom Keiser
<tkeiser@gmail.com>
Wed, 2 Nov 2005 05:22:39 +0000 (
05:22
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Wed, 2 Nov 2005 05:22:39 +0000 (
05:22
+0000)
fix a math error here
src/rx/rx_packet.c
patch
|
blob
|
history
diff --git
a/src/rx/rx_packet.c
b/src/rx/rx_packet.c
index
8769088
..
33eed24
100644
(file)
--- a/
src/rx/rx_packet.c
+++ b/
src/rx/rx_packet.c
@@
-2548,7
+2548,7
@@
rxi_PrepareSendPacket(register struct rx_call *call,
queue_Init(&q);
/* Free any extra elements in the wirevec */
- for (j = MAX(2, i), nb = j - p->niovecs; j < p->niovecs; j++) {
+ for (j = MAX(2, i), nb = p->niovecs - j; j < p->niovecs; j++) {
queue_Append(&q,RX_CBUF_TO_PACKET(p->wirevec[j].iov_base, p));
}
if (nb)