]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: istream-sized should log errors with its own name, not parent's name
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 16 May 2016 17:17:41 +0000 (20:17 +0300)
committerGitLab <gitlab@git.dovecot.net>
Wed, 18 May 2016 12:21:30 +0000 (15:21 +0300)
src/lib/istream-sized.c

index ed6384edc97fb34f718fbd6c61fedb233db31690..d2509e3a16fb78dec7427269dd0126794869979e 100644 (file)
@@ -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;
        }