changeset 20587:ac533640ffab

lib-dcrypt: Support nonblocking istreams.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 04 Aug 2016 21:29:14 +0300
parents 56fde44e2425
children 2d909f393a27
files src/lib-dcrypt/istream-decrypt.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-dcrypt/istream-decrypt.c	Thu Aug 04 19:45:35 2016 +0300
+++ b/src/lib-dcrypt/istream-decrypt.c	Thu Aug 04 21:29:14 2016 +0300
@@ -847,7 +847,7 @@
 	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);