dovecot-2.2: lib: i_stream_read_copy_from_parent() now directly ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 19 12:16:49 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/467a4d19f873
changeset: 17512:467a4d19f873
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 19 15:15:24 2014 +0300
description:
lib: i_stream_read_copy_from_parent() now directly updates the access counter
This fixes a bug in istream-mail where it called i_stream_get_data() after
it and reset the stream's skip/pos.

diffstat:

 src/lib/istream.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 0d072ade062d -r 467a4d19f873 src/lib/istream.c
--- a/src/lib/istream.c	Thu Jun 19 14:58:26 2014 +0300
+++ b/src/lib/istream.c	Thu Jun 19 15:15:24 2014 +0300
@@ -223,6 +223,7 @@
 	stream->pos = pos;
 	i_assert(ret != -1 || stream->istream.eof ||
 		 stream->istream.stream_errno != 0);
+	i_stream_update(stream);
 	return ret;
 }
 


More information about the dovecot-cvs mailing list