changeset 17512:467a4d19f873

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.
author Timo Sirainen <tss@iki.fi>
date Thu, 19 Jun 2014 15:15:24 +0300
parents 0d072ade062d
children 119adb7d2479
files src/lib/istream.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }