2003-03-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 27 Mar 2003 23:45:50 +0000 (23:45 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 27 Mar 2003 23:45:50 +0000 (23:45 -0000)
* CryptoStream.cs: don't Close the underlying stream in FlushFinalBlock.
Fixes bug #40394.

svn path=/trunk/mcs/; revision=12878

mcs/class/corlib/System.Security.Cryptography/ChangeLog
mcs/class/corlib/System.Security.Cryptography/CryptoStream.cs

index d5d7352ab3a5baa484f8553c2910180180e211db..93b31433f08a2a8dfbaa6298b90e51dd7c6b0d15 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * CryptoStream.cs: don't Close the underlying stream in FlushFinalBlock.
+       Fixes bug #40394.
+
 2003-03-03  Sebastien Pouliot  <spouliot@videotron.ca>
 
        * RSACryptoServiceProvider.cs: Delay keypair generation event when 
index 1682d0f48488fa80b9d4f8372f3056e50adfe414..ccfe91b0769d6a435bdf3bb9b5f4210e6bf819da 100755 (executable)
@@ -161,10 +161,8 @@ public class CryptoStream : Stream {
                if (_mode != CryptoStreamMode.Write)
                        throw new NotSupportedException ("cannot flush a non-writeable CryptoStream");
 
-               if (_stream != null) {
+               if (_stream != null)
                        _stream.Flush ();
-                       Close ();
-               }
        }
 
        public override long Seek (long offset, SeekOrigin origin)