From: Timo Sirainen Date: Sun, 22 Sep 2013 01:24:29 +0000 (+0300) Subject: ostream-errno: last_failed_errno wasn't set, causing problems with some functions. X-Git-Tag: 2.2.6~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=904ca86f5d3f27505f50f5342214aabb78629cc8;p=thirdparty%2Fdovecot%2Fcore.git ostream-errno: last_failed_errno wasn't set, causing problems with some functions. --- diff --git a/src/lib/ostream.c b/src/lib/ostream.c index ad81fa203a..05398aac70 100644 --- a/src/lib/ostream.c +++ b/src/lib/ostream.c @@ -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)");