Changeset 5704

Avoid accessing beyond the end of the iov list in cw_writev_all

Comitted by:  mjagdis
Date:  Jun 04 2010 * 23:10 (about 1 year ago)

Affected files:

callweaver/trunk/corelib/utils.c (unified diff)

r5680r5704
6767
6868 written += n;
6969
70 while (x >= iov[0].iov_len) {
70 while (x && x >= iov[0].iov_len) {
7171 x -= iov[0].iov_len;
7272 count--;
7373 iov++;