[dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.33.2.1, 1.33.2.2
tss at dovecot.org
tss at dovecot.org
Tue Feb 6 10:43:31 UTC 2007
- Previous message: [dovecot-cvs] dovecot/src/lib istream-data.c, 1.15, 1.16 istream-file.c, 1.27, 1.28 istream-limit.c, 1.18, 1.19 istream-mmap.c, 1.20, 1.21 istream.c, 1.35, 1.36 istream.h, 1.26, 1.27
- Next message: [dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv19734
Modified Files:
Tag: branch_1_0
istream-header-filter.c
Log Message:
_read() could have returned "need more data" in wrong situations, which
could have caused problems later.
Index: istream-header-filter.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/istream-header-filter.c,v
retrieving revision 1.33.2.1
retrieving revision 1.33.2.2
diff -u -d -r1.33.2.1 -r1.33.2.2
--- istream-header-filter.c 8 Jun 2006 19:26:22 -0000 1.33.2.1
+++ istream-header-filter.c 6 Feb 2007 10:43:29 -0000 1.33.2.2
@@ -214,6 +214,9 @@
mstream->header_size.virtual_size +
mstream->header_size.physical_size);
+ stream->pos -= stream->skip;
+ stream->skip = 0;
+
stream->buffer = i_stream_get_data(mstream->input, &pos);
if (pos <= stream->pos) {
if ((ret = i_stream_read(mstream->input)) == -2) {
@@ -226,9 +229,6 @@
ret = 0;
}
- stream->pos -= stream->skip;
- stream->skip = 0;
-
ret = pos > stream->pos ? (ssize_t)(pos - stream->pos) :
(ret == 0 ? 0 : -1);
stream->pos = pos;
- Previous message: [dovecot-cvs] dovecot/src/lib istream-data.c, 1.15, 1.16 istream-file.c, 1.27, 1.28 istream-limit.c, 1.18, 1.19 istream-mmap.c, 1.20, 1.21 istream.c, 1.35, 1.36 istream.h, 1.26, 1.27
- Next message: [dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list