]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Support nonblocking istreams.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 4 Aug 2016 18:29:14 +0000 (21:29 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 4 Aug 2016 18:44:27 +0000 (21:44 +0300)
src/lib-dcrypt/istream-decrypt.c

index 6fbaf736e34fa1db02c5beab462a9777a7f31ff7..b4c77b31e799831b101f003eec12cffa31a6dfd3 100644 (file)
@@ -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);