[System]: SslStream.Flush() now flushes the underlying stream. Bug #57528. (#5569)
[mono.git] / mcs / class / System / System.Net.Security / SslStream.cs
index c0b702fde1b2f92798271fdf943402e1460eb27a..a536f3bb8224edc5cd599737bca41c05631efc3e 100644 (file)
@@ -293,15 +293,15 @@ namespace System.Net.Security
                }
 
                public override bool CanRead {
-                       get { return Impl.CanRead; }
+                       get { return impl != null && impl.CanRead; }
                }
 
                public override bool CanTimeout {
-                       get { return Impl.CanTimeout; }
+                       get { return InnerStream.CanTimeout; }
                }
 
                public override bool CanWrite {
-                       get { return Impl.CanWrite; }
+                       get { return impl != null && impl.CanWrite; }
                }
 
                public override int ReadTimeout {
@@ -337,7 +337,7 @@ namespace System.Net.Security
 
                public override void Flush ()
                {
-                       Impl.Flush ();
+                       InnerStream.Flush ();
                }
 
                void CheckDisposed ()