From: Timo Sirainen Date: Thu, 4 Aug 2016 18:29:14 +0000 (+0300) Subject: lib-dcrypt: Support nonblocking istreams. X-Git-Tag: 2.3.0.rc1~3239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4930d4fef187428f74827d7e47331beb5cc4e39d;p=thirdparty%2Fdovecot%2Fcore.git lib-dcrypt: Support nonblocking istreams. --- diff --git a/src/lib-dcrypt/istream-decrypt.c b/src/lib-dcrypt/istream-decrypt.c index 6fbaf736e3..b4c77b31e7 100644 --- a/src/lib-dcrypt/istream-decrypt.c +++ b/src/lib-dcrypt/istream-decrypt.c @@ -847,7 +847,7 @@ struct decrypt_istream *i_stream_create_decrypt_common(struct istream *input) dstream->istream.iostream.destroy = i_stream_decrypt_destroy; dstream->istream.istream.readable_fd = FALSE; - dstream->istream.istream.blocking = TRUE; + dstream->istream.istream.blocking = input->blocking; dstream->istream.istream.seekable = FALSE; dstream->buf = buffer_create_dynamic(default_pool, 512);