Skip to content

Commit c5d6519

Browse files
committed
Respect buffer size and use Streams
1 parent c6ba517 commit c5d6519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crypto/src/cms/CMSProcessableFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public virtual Stream GetInputStream()
3636

3737
public virtual void Write(Stream zOut)
3838
{
39-
Stream inStr = GetInputStream();
40-
Streams.PipeAll(inStr, zOut);
39+
Stream inStr = _file.OpenRead();
40+
Streams.PipeAll(inStr, zOut, _bufSize);
4141
Platform.Dispose(inStr);
4242
}
4343

0 commit comments

Comments
 (0)