From: Timo Sirainen Date: Mon, 16 May 2016 17:17:41 +0000 (+0300) Subject: lib: istream-sized should log errors with its own name, not parent's name X-Git-Tag: 2.3.0.rc1~3715 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb4c7c4cdf470c8aec47d0de76ccff03094d374;p=thirdparty%2Fdovecot%2Fcore.git lib: istream-sized should log errors with its own name, not parent's name --- diff --git a/src/lib/istream-sized.c b/src/lib/istream-sized.c index ed6384edc9..d2509e3a16 100644 --- a/src/lib/istream-sized.c +++ b/src/lib/istream-sized.c @@ -90,7 +90,7 @@ static ssize_t i_stream_sized_read(struct istream_private *stream) error = sstream->error_callback(&data, sstream->error_context); io_stream_set_error(&stream->iostream, "%s", error); i_error("read(%s) failed: %s", - i_stream_get_name(stream->parent), + i_stream_get_name(&stream->istream), stream->iostream.error); pos = left; stream->istream.eof = TRUE; @@ -104,7 +104,7 @@ static ssize_t i_stream_sized_read(struct istream_private *stream) error = sstream->error_callback(&data, sstream->error_context); io_stream_set_error(&stream->iostream, "%s", error); i_error("read(%s) failed: %s", - i_stream_get_name(stream->parent), + i_stream_get_name(&stream->istream), stream->iostream.error); stream->istream.stream_errno = EINVAL; }