]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ostream-errno: last_failed_errno wasn't set, causing problems with some functions.
authorTimo Sirainen <tss@iki.fi>
Sun, 22 Sep 2013 01:24:29 +0000 (04:24 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 22 Sep 2013 01:24:29 +0000 (04:24 +0300)
src/lib/ostream.c

index ad81fa203a6a04b0bc28c02357a42e88c7f51a3e..05398aac706b0c8b49861c9d8738461186ff4f5f 100644 (file)
@@ -557,6 +557,7 @@ struct ostream *o_stream_create_error(int stream_errno)
        stream = i_new(struct ostream_private, 1);
        stream->ostream.closed = TRUE;
        stream->ostream.stream_errno = stream_errno;
+       stream->ostream.last_failed_errno = stream_errno;
 
        output = o_stream_create(stream, NULL, -1);
        o_stream_set_name(output, "(error)");