[dovecot-cvs] dovecot/src/lib ostream-file.c,1.43,1.44
cras at dovecot.org
cras at dovecot.org
Fri Dec 17 15:31:21 EET 2004
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv4760
Modified Files:
ostream-file.c
Log Message:
Go back to the version before recent changes. It was correct all the time.
Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- ostream-file.c 16 Dec 2004 20:41:15 -0000 1.43
+++ ostream-file.c 17 Dec 2004 13:31:19 -0000 1.44
@@ -541,17 +541,8 @@
}
}
outstream->ostream.offset += ret;
-
- /* only the last iov is from input stream. skip others. */
- for (pos = 0; pos < iov_len-1; pos++) {
- if ((size_t)ret < iov[pos].iov_len)
- break;
- ret -= iov[pos].iov_len;
- }
- if (pos != iov_len-1)
- break;
-
i_stream_skip(instream, ret);
+
if ((size_t)ret != iov[pos].iov_len)
break;
More information about the dovecot-cvs
mailing list